split up wireguard stuff

This commit is contained in:
2024-11-14 10:36:54 -05:00
parent e53feb78e4
commit f081e8ff27
4 changed files with 31 additions and 16 deletions

12
services/wg.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, service_configs, ... }:
{
# network namespace that is proxied through mullvad
vpnNamespaces.wg = {
enable = true;
wireguardConfigFile = ../secrets/wg0.conf;
accessibleFrom = [
"192.168.0.0/24"
];
};
}