diff options
Diffstat (limited to 'os/kay')
-rw-r--r-- | os/kay/modules/wireguard.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/kay/modules/wireguard.nix b/os/kay/modules/wireguard.nix index 82eb96f..2ee41b6 100644 --- a/os/kay/modules/wireguard.nix +++ b/os/kay/modules/wireguard.nix @@ -1,13 +1,10 @@ -{ config, ... }: - -let +{ config, ... }: let wgInterface = "wg"; wanInterface = "ppp0"; subnet = "10.0.1.0"; prefix = 24; port = 51820; -in -{ +in { sops.secrets."misc/wireguard" = {}; networking = { @@ -19,7 +16,10 @@ in firewall = { allowedUDPPorts = [ port ]; extraCommands = '' - iptables -t nat -I POSTROUTING 1 -s ${subnet}/${toString prefix} -o ${wanInterface} -j MASQUERADE + iptables -t nat -I POSTROUTING 1 \ + -s ${subnet}/${toString prefix} \ + -o ${wanInterface} \ + -j MASQUERADE ''; }; |