summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-04-22 04:55:24 +0200
committerMel <mel@rnrd.eu>2026-04-22 04:55:24 +0200
commit188899a998a52b4b9c76958280dccede5b685bca (patch)
tree0ba76abbaff3672677d357dc4518ed5ebf32703e
parent596f55b576b0e186ffa41b68f364f1a83040e219 (diff)
downloadnetwork-188899a998a52b4b9c76958280dccede5b685bca.tar.zst
network-188899a998a52b4b9c76958280dccede5b685bca.zip
Remove deprecated network config keys in VPN module
Signed-off-by: Mel <mel@rnrd.eu>
-rw-r--r--modules/vpn/ingress.nix20
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";
}
];
};