wireguard namespace on nixdesk

This commit is contained in:
xunuwu 2025-02-18 11:42:45 +01:00
parent c7b94c8000
commit 825e37c4d4
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
5 changed files with 28 additions and 22 deletions

View file

@ -0,0 +1,21 @@
{
config,
inputs,
...
}: {
imports = [inputs.vpn-confinement.nixosModules.default];
# networking.wg-quick.interfaces."wireguard".configFile = config.sops.secrets.wireguard.path;
vpnNamespaces."wg" = {
enable = true;
wireguardConfigFile = config.sops.secrets.wireguard.path;
accessibleFrom = ["192.168.0.0/24"];
# Forwarded to my vpn, for making things accessible from outside
openVPNPorts = [];
# From inside of the vpn namespace to outside of it, for making things inside accessible to LAN
portMappings = [];
};
}