From 105c08172827499504816106ffe1b61d76c2d4c8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 28 Nov 2022 22:58:39 +0100 Subject: Staging: ability to run Nix jobs using exec2 driver --- deploy_nixos | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'deploy_nixos') 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 -- cgit v1.2.3