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

View File

@@ -1,5 +1,23 @@
{ pkgs, service_configs, ... }:
{
vpnNamespaces.wg = {
portMappings = [
{
from = service_configs.ports.bitmagnet;
to = service_configs.ports.bitmagnet;
}
];
openVPNPorts = [
{
# TODO! make an issue about this variable
port = service_configs.ports.bitmagnet;
protocol = "both";
}
];
};
services.bitmagnet = {
enable = true;
@@ -17,5 +35,4 @@
enable = true;
vpnNamespace = "wg";
};
}