Skip to content

Commit

Permalink
system-update
Browse files Browse the repository at this point in the history
  • Loading branch information
neeasade committed Mar 16, 2020
1 parent c384921 commit 437f02a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/bin/system-update
@@ -0,0 +1,15 @@
#!/bin/sh

usage() {
echo "$0 [test|switch]"
exit 1
}

sudo echo yeet >/dev/null # so we and all our subshells get it

channel=$(sudo nix-channel --list | sed 's#https://nixos.org/channels/nixos-##')
echo "channel: $channel"

# update our nix-channel reference:
sudo nix-channel --update
sudo nixos-rebuild "${*}"

0 comments on commit 437f02a

Please sign in to comment.