2022-06-08 00:17:55 +03:00
|
|
|
{ config, pkgs, ... }:
|
2022-02-05 21:42:36 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
age.secrets = {
|
|
|
|
transmission-rpc-password = {
|
|
|
|
file = ../../../secrets/transmission-rpc-password.age;
|
|
|
|
mode = "0400";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.groups.mediamanagers = {
|
|
|
|
gid = 646000020;
|
|
|
|
members = [ "transmission" "lidarr" ];
|
|
|
|
};
|
|
|
|
services.lidarr.group = "mediamanagers";
|
|
|
|
services.transmission = {
|
|
|
|
enable = true;
|
|
|
|
group = "mediamanagers";
|
|
|
|
settings = {
|
2022-06-15 00:50:44 +03:00
|
|
|
download-dir = "/srv/data/download";
|
|
|
|
incomplete-dir = "/srv/data/download/.incomplete";
|
2022-10-31 20:07:53 +02:00
|
|
|
incomplete-dir-enabled = false;
|
2022-02-05 21:42:36 +02:00
|
|
|
|
|
|
|
# being a leech
|
|
|
|
speed-limit-up = 20;
|
|
|
|
ratio-limit = 0.01;
|
|
|
|
idle-seeding-limit = 1;
|
|
|
|
speed-limit-up-enabled = true;
|
|
|
|
ratio-limit-enabled = true;
|
|
|
|
idle-seeding-limit-enabled = true;
|
|
|
|
|
|
|
|
utp-enabled = false;
|
|
|
|
rpc-bind-address = "0.0.0.0";
|
2023-12-10 00:30:28 +02:00
|
|
|
rpc-whitelist = "127.0.0.1,::1,10.100.0.1,10.100.0.*,10.100.1.*,10.100.3.*,100.64.*.*";
|
2022-02-05 21:42:36 +02:00
|
|
|
rpc-authentication-required = true;
|
|
|
|
};
|
|
|
|
credentialsFile = config.age.secrets.transmission-rpc-password.path;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.interfaces.tungsten.allowedTCPPorts = [ 9091 ];
|
2024-05-13 00:25:33 +03:00
|
|
|
|
|
|
|
services.hyprspace.services.fbi-download = "/tcp/${toString config.services.transmission.settings.rpc-port}";
|
2022-02-05 21:42:36 +02:00
|
|
|
}
|