From 188899a998a52b4b9c76958280dccede5b685bca Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 22 Apr 2026 04:55:24 +0200 Subject: Remove deprecated network config keys in VPN module Signed-off-by: Mel --- modules/vpn/ingress.nix | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'modules/vpn/ingress.nix') 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"; } ]; }; -- cgit 1.4.1