This commit is contained in:
2025-07-20 14:20:59 +02:00
parent ff656dc319
commit 428a2cd615
4 changed files with 69 additions and 69 deletions

View File

@@ -66,6 +66,7 @@ in {
};
services."delugedproxy" = {
enable = true;
description = "Proxy to Deluge in Network Namespace";
requires = [
"deluged.service"
@@ -79,10 +80,10 @@ in {
JoinsNamespaceOf = "deluged.service";
};
serviceConfig = {
Type = "simple";
User = config.services.deluge.user;
Group = config.services.deluge.group;
ExecStart = "${pkgs.systemd}/lib/systemd/systemd-socket-proxyd --exit-idle-time=5min 127.0.0.1:58846";
PrivateNetwork = true;
NetworkNamespacePath = "/var/run/netns/${ns}";
PrivateNetwork = "yes";
};
};
};