aboutsummaryrefslogtreecommitdiffstats
path: root/home/root/arrakis.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/root/arrakis.nix4
1 files changed, 2 insertions, 2 deletions
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