This commit is contained in:
Hadi 2024-08-23 10:51:31 +02:00
parent cfa4e187c5
commit fbd804939f

View File

@ -66,11 +66,35 @@ in {
openFirewall = true; openFirewall = true;
}; };
# transmission = { transmission = {
# enable = true; enable = true;
# user = "jackflix"; user = "nixarr";
# group = "media"; group = "nixarr";
# openFirewall = true; openFirewall = true;
# }; settings = {
"rpc-bind-address" = "192.168.15.1"; # Bind RPC/WebUI to bridge address
};
};
};
# Define VPN network namespace
vpnnamespaces.wg = {
enable = true;
wireguardConfigFile = "/data/.secret/wg.conf";
accessibleFrom = [ "192.168.1.0/24" ];
portMappings = [{
from = 9091;
to = 9091;
}];
openVPNPorts = [{
port = 60729;
protocol = "both";
}];
};
# Add systemd service to VPN network namespace.
systemd.services.transmission.vpnconfinement = {
enable = true;
vpnnamespace = "wg";
}; };
} }