aboutsummaryrefslogtreecommitdiff
path: root/upgrade.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-26 13:23:01 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-26 13:23:01 +0100
commit2f6d64a1a81de511c0b62dc2241dc08dc75e5283 (patch)
tree7b5a0eecc6c3b523340fea5ee2d45c66f4a4f1c5 /upgrade.sh
parent05bb108323cd7a28968f38a21817443ce17a429a (diff)
downloadnixcfg-2f6d64a1a81de511c0b62dc2241dc08dc75e5283.tar.gz
nixcfg-2f6d64a1a81de511c0b62dc2241dc08dc75e5283.zip
Cleanup
Diffstat (limited to 'upgrade.sh')
-rwxr-xr-xupgrade.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/upgrade.sh b/upgrade.sh
index 4134bbd..17d61ce 100755
--- a/upgrade.sh
+++ b/upgrade.sh
@@ -19,6 +19,10 @@ for NIXHOST in $NIXHOSTLIST; do
echo "==== DOING $NIXHOST ===="
+ ssh -F ssh_config $SSH_DEST sudo nix-channel --add https://nixos.org/channels/nixos-21.11 nixos
ssh -F ssh_config $SSH_DEST sudo nix-channel --update
- ssh -F ssh_config $SSH_DEST sudo nixos-rebuild switch
+ ssh -F ssh_config $SSH_DEST sudo nixos-rebuild boot
+
+ echo "Please reboot node manually to activate upgraded system:"
+ echo "$ ssh -F ssh_config $SSH_DEST sudo reboot"
done