From ab901fc81d483f24334680a53cacd6b981bb37a7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 23 Aug 2022 23:55:15 +0200 Subject: Remove wesher, reconfigure staging without it --- deploy_nixos | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'deploy_nixos') diff --git a/deploy_nixos b/deploy_nixos index 30691e0..f62843d 100755 --- a/deploy_nixos +++ b/deploy_nixos @@ -3,10 +3,12 @@ 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/wesher.nix /etc/nixos/wesher.nix -copy nix/wesher_service.nix /etc/nixos/wesher_service.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 +cmd 'mkdir -p /var/lib/deuxfleurs/wireguard-keys' +cmd 'test -f /var/lib/deuxfleurs/wireguard-keys/private || (wg genkey > /var/lib/deuxfleurs/wireguard-keys/private; chmod 600 /var/lib/deuxfleurs/wireguard-keys/private)' +cmd 'echo "Public key: $(wg pubkey < /var/lib/deuxfleurs/wireguard-keys/private)"' + cmd nixos-rebuild switch --show-trace -- cgit v1.2.3