diff options
author | Alex Auvolat <alex@adnab.me> | 2023-06-13 11:56:10 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-13 11:56:10 +0200 |
commit | 6c12a71ecb8234bf4bf933bccc8f368cf31aa3f9 (patch) | |
tree | 64df93e1e2a1b6161b46c24f7b8fcceb84b5067e /upgrade_nixos | |
parent | 1d19bae7a1edeff5db5c7ac02b3d984a815bf06b (diff) | |
download | nixcfg-6c12a71ecb8234bf4bf933bccc8f368cf31aa3f9.tar.gz nixcfg-6c12a71ecb8234bf4bf933bccc8f368cf31aa3f9.zip |
Deploy nixos 23.05 on staging and other staging fixes
Diffstat (limited to 'upgrade_nixos')
-rwxr-xr-x | upgrade_nixos | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/upgrade_nixos b/upgrade_nixos index 69c780e..403e64e 100755 --- a/upgrade_nixos +++ b/upgrade_nixos @@ -1,6 +1,10 @@ #!/usr/bin/env ./sshtool -cmd nix-channel --add https://nixos.org/channels/nixos-22.11 nixos +if [ "$CLUSTER" = "staging" ]; then + cmd nix-channel --add https://nixos.org/channels/nixos-23.05 nixos +else + cmd nix-channel --add https://nixos.org/channels/nixos-22.11 nixos +fi cmd nix-channel --update cmd nixos-rebuild boot |