diff options
| author | Mel <mel@rnrd.eu> | 2026-04-22 04:55:24 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-04-22 04:55:24 +0200 |
| commit | 188899a998a52b4b9c76958280dccede5b685bca (patch) | |
| tree | 0ba76abbaff3672677d357dc4518ed5ebf32703e /modules/vpn/ingress.nix | |
| parent | 596f55b576b0e186ffa41b68f364f1a83040e219 (diff) | |
| download | network-188899a998a52b4b9c76958280dccede5b685bca.tar.zst network-188899a998a52b4b9c76958280dccede5b685bca.zip | |
Remove deprecated network config keys in VPN module
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/vpn/ingress.nix')
| -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"; } ]; }; |
