From b378faaf029fc63e02a4221f97f2abc6ccc6fcf8 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sun, 13 Oct 2024 02:57:50 -0700 Subject: Undo relative SOPS path --- home/root/arrakis.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home') diff --git a/home/root/arrakis.nix b/home/root/arrakis.nix index aee1567..c78c958 100644 --- a/home/root/arrakis.nix +++ b/home/root/arrakis.nix @@ -27,8 +27,8 @@ ip route add 192.168.1.3/32 dev veth.host ip link add wg1 type wireguard ip link set wg1 netns vpn - ip -n vpn -4 address add $(grep ^#Address ${config.sops.secrets."wireguard/wg1_conf".path} | cut -d= -f2 | cut -d, -f1 | xargs) dev wg1 - ip netns exec vpn wg setconf wg1 ${config.sops.secrets."wireguard/wg1_conf".path} + ip -n vpn -4 address add $(grep ^#Address /run/secrets/wireguard/wg1_conf | cut -d= -f2 | cut -d, -f1 | xargs) dev wg1 + ip netns exec vpn wg setconf wg1 /run/secrets/wireguard/wg1_conf ip -n vpn link set wg1 up ip -n vpn route add default dev wg1 ip netns exec vpn nft -f /etc/nftables-vpn.conf -- cgit v1.2.3