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 /deploy_nixos | |
parent | a327876e253b464c049faeafeb24ab2687425014 (diff) | |
download | nixcfg-105c08172827499504816106ffe1b61d76c2d4c8.tar.gz nixcfg-105c08172827499504816106ffe1b61d76c2d4c8.zip |
Staging: ability to run Nix jobs using exec2 driver
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 |