Setup transmission
This commit is contained in:
parent
251cdcec37
commit
4b90a1cdaf
3 changed files with 42 additions and 3 deletions
|
@ -13,12 +13,13 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.chvp.services.deluge.enable {
|
||||
chvp.services.nginx.hosts = builtins.genList
|
||||
chvp.services.nginx.hosts = (builtins.genList
|
||||
(n: {
|
||||
fqdn = "del${toString (n + 1)}.vanpetegem.me";
|
||||
basicProxy = "http://localhost:${toString (8112 + n)}";
|
||||
})
|
||||
config.chvp.services.deluge.count;
|
||||
}) config.chvp.services.deluge.count) ++ [
|
||||
{ fqdn = "transmission.vanpetegem.me"; basicProxy = "http://localhost:9091"; }
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPortRanges = [
|
||||
|
@ -27,6 +28,30 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
user = "charlotte";
|
||||
group = "users";
|
||||
home = "/data/var/lib/transmission";
|
||||
openRPCPort = true;
|
||||
openPeerPorts = true;
|
||||
credentialsFile = config.age.secrets."files/programs/transmission/config.json".path;
|
||||
settings = {
|
||||
umask = 18;
|
||||
download-dir = "/srv/data";
|
||||
rpc-authentication-required = true;
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
rpc-enabled = true;
|
||||
rpc-host-whitelist-enabled = false;
|
||||
rpc-whitelist-enabled = false;
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets."files/programs/transmission/config.json" = {
|
||||
file = ../../../secrets/files/programs/transmission/config.json.age;
|
||||
owner = "charlotte";
|
||||
};
|
||||
|
||||
systemd.services = builtins.foldl' (x: y: x // y) { } (builtins.genList
|
||||
(n:
|
||||
let num = toString (n + 1); in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue