From f3c0ed69f8671defeb442cedfc349613face0e77 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sun, 13 Oct 2024 02:53:24 -0700 Subject: Use 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 c78c958..aee1567 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 /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 -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 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