configuration.nix/hosts/rico0/services/apps/transmission.nix

25 lines
596 B
Nix
Raw Normal View History

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"
"--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" ];
}