diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-28 22:58:39 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-28 22:58:39 +0100 |
commit | 105c08172827499504816106ffe1b61d76c2d4c8 (patch) | |
tree | 1a9f7472fa03c45089191e8e3167e3e9d5533297 /upgrade_nixos | |
parent | a327876e253b464c049faeafeb24ab2687425014 (diff) | |
download | nixcfg-105c08172827499504816106ffe1b61d76c2d4c8.tar.gz nixcfg-105c08172827499504816106ffe1b61d76c2d4c8.zip |
Staging: ability to run Nix jobs using exec2 driver
Diffstat (limited to 'upgrade_nixos')
-rwxr-xr-x | upgrade_nixos | 7 |
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 |