expand vpnNamespaceOpenPort

This commit is contained in:
2025-08-20 12:33:27 -04:00
parent 87a5466411
commit a827438a4c
3 changed files with 7 additions and 14 deletions

View File

@@ -55,7 +55,7 @@ inputs.nixpkgs.lib.extend (
];
vpnNamespaceOpenPort =
port:
port: service:
{ ... }:
{
vpnNamespaces.wg = {
@@ -73,6 +73,10 @@ inputs.nixpkgs.lib.extend (
}
];
};
systemd.services.${service}.vpnConfinement = {
enable = true;
vpnNamespace = "wg";
};
};
}
)