25 lines
596 B
Nix
25 lines
596 B
Nix
|
{ 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"
|
||
|
"--allowed" "127.0.0.1,10.10.10.*"
|
||
|
];
|
||
|
settings = {
|
||
|
peer-port = 51515;
|
||
|
rpc-bind-address = "10.10.10.10";
|
||
|
rpc-port = 9091;
|
||
|
watch-dir-enabled = true;
|
||
|
};
|
||
|
};
|
||
|
systemd.services.transmission.after = [ "mnt-data.mount" ];
|
||
|
}
|