diff options
Diffstat (limited to 'modules/vpn')
| -rw-r--r-- | modules/vpn/ingress.nix | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/modules/vpn/ingress.nix b/modules/vpn/ingress.nix index d26b1ec..d10a2fa 100644 --- a/modules/vpn/ingress.nix +++ b/modules/vpn/ingress.nix @@ -54,10 +54,8 @@ in ListenPort = path.port; }; wireguardPeers = map (user: { - wireguardPeerConfig = { - PublicKey = user.key; - AllowedIPs = [ (addressFromTemplate index user.ip 32) ]; - }; + PublicKey = user.key; + AllowedIPs = [ (addressFromTemplate index user.ip 32) ]; }) (attrValues users); }; }; @@ -68,10 +66,8 @@ in address = [ (addressFromTemplate index ownAddress 24) ]; routingPolicyRules = [ { - routingPolicyRuleConfig = { - IncomingInterface = ingressName index; - Table = 100; - }; + IncomingInterface = ingressName index; + Table = 100; } ]; }; @@ -87,11 +83,9 @@ in linkConfig.ActivationPolicy = "up"; routes = [ { - routeConfig = { - Destination = "0.0.0.0/0"; - Table = 100; - Scope = "link"; - }; + Destination = "0.0.0.0/0"; + Table = 100; + Scope = "link"; } ]; }; |
