diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-13 02:53:24 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-13 02:53:24 -0700 |
commit | f3c0ed69f8671defeb442cedfc349613face0e77 (patch) | |
tree | 367afd10e579259f697625aaa98502e769733bbb /home | |
parent | fe8c1092475cefa30725050746082686d4924384 (diff) | |
download | nix-f3c0ed69f8671defeb442cedfc349613face0e77.tar nix-f3c0ed69f8671defeb442cedfc349613face0e77.tar.gz nix-f3c0ed69f8671defeb442cedfc349613face0e77.tar.bz2 nix-f3c0ed69f8671defeb442cedfc349613face0e77.tar.lz nix-f3c0ed69f8671defeb442cedfc349613face0e77.tar.xz nix-f3c0ed69f8671defeb442cedfc349613face0e77.tar.zst nix-f3c0ed69f8671defeb442cedfc349613face0e77.zip |
Use relative SOPS path
Diffstat (limited to 'home')
-rw-r--r-- | home/root/arrakis.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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 |