2024-07-04 01:13:49 +05:30
|
|
|
{ pkgs, ... }: {
|
|
|
|
services.transmission = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.transmission_4;
|
|
|
|
downloadDirPermissions = "775";
|
|
|
|
home = "/mnt/data/Torrents";
|
|
|
|
webHome = pkgs.flood-for-transmission;
|
|
|
|
openPeerPorts = true;
|
|
|
|
extraFlags = [
|
|
|
|
"--encryption-required"
|
|
|
|
"--no-portmap"
|
|
|
|
"--dht"
|
|
|
|
"--lpd"
|
2024-07-04 23:01:53 +05:30
|
|
|
"--allowed"
|
|
|
|
"127.0.0.1,10.10.10.*"
|
2024-07-04 01:13:49 +05:30
|
|
|
];
|
|
|
|
settings = {
|
|
|
|
peer-port = 51515;
|
|
|
|
rpc-bind-address = "10.10.10.10";
|
|
|
|
rpc-port = 9091;
|
|
|
|
watch-dir-enabled = true;
|
|
|
|
};
|
|
|
|
};
|
2024-07-05 00:16:21 +05:30
|
|
|
systemd.services.transmission.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
2024-07-04 01:13:49 +05:30
|
|
|
}
|