ude: deluge init
This commit is contained in:
parent
2ec02e037a
commit
1b3efb67a9
3 changed files with 30 additions and 0 deletions
|
@ -44,5 +44,24 @@
|
|||
'';
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
age.secrets.deluge-auth = {
|
||||
file = ../../secrets/ude-deluge.age;
|
||||
owner = config.services.deluge.user;
|
||||
};
|
||||
services.deluge = {
|
||||
enable = true;
|
||||
web.enable = true;
|
||||
declarative = true;
|
||||
openFirewall = true;
|
||||
authFile = config.age.secrets.deluge-auth.path;
|
||||
config = {
|
||||
download_location = "${config.services.deluge.dataDir}/torrents/";
|
||||
allow_remote = true;
|
||||
daemon_port = 58846;
|
||||
listen_ports = lib.genList (off: 6881 + off) 10;
|
||||
random_port = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue