diff options
Diffstat (limited to 'deploy_nixos')
-rwxr-xr-x | deploy_nixos | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deploy_nixos b/deploy_nixos index 6a9f4a6..583c391 100755 --- a/deploy_nixos +++ b/deploy_nixos @@ -3,11 +3,15 @@ copy nix/configuration.nix /etc/nixos/configuration.nix copy nix/deuxfleurs.nix /etc/nixos/deuxfleurs.nix copy nix/remote-unlock.nix /etc/nixos/remote-unlock.nix -copy nix/nomad-driver-nix.nix /etc/nixos/nomad-driver-nix.nix copy cluster/$CLUSTER/cluster.nix /etc/nixos/cluster.nix copy cluster/$CLUSTER/node/$NIXHOST.nix /etc/nixos/node.nix copy cluster/$CLUSTER/node/$NIXHOST.site.nix /etc/nixos/site.nix +if [ "$CLUSTER" = "staging" ]; then + copy nix/nomad-driver-nix.nix /etc/nixos/nomad-driver-nix.nix + copy nix/nomad-driver-exec2.nix /etc/nixos/nomad-driver-exec2.nix +fi + # use ./upgrade_nixos instead to upgrade NixOS #cmd "nix-channel --add https://nixos.org/channels/nixos-22.05 nixos" #cmd nixos-rebuild switch --upgrade --show-trace |