aboutsummaryrefslogtreecommitdiff
path: root/upgrade_nixos
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade_nixos')
-rwxr-xr-xupgrade_nixos7
1 files changed, 6 insertions, 1 deletions
diff --git a/upgrade_nixos b/upgrade_nixos
index 1297a2b..df3d259 100755
--- a/upgrade_nixos
+++ b/upgrade_nixos
@@ -1,6 +1,11 @@
#!/usr/bin/env ./sshtool
-cmd nix-channel --add https://nixos.org/channels/nixos-22.05 nixos
+if [ "$CLUSTER" = "staging" ]; then
+ cmd nix-channel --add https://nixos.org/channels/nixos-22.11 nixos
+else
+ cmd nix-channel --add https://nixos.org/channels/nixos-22.05 nixos
+fi
+
cmd nix-channel --update
cmd nixos-rebuild boot