diff options
Diffstat (limited to 'modules/torrent.nix')
| -rw-r--r-- | modules/torrent.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/torrent.nix b/modules/torrent.nix new file mode 100644 index 0000000..9266f44 --- /dev/null +++ b/modules/torrent.nix @@ -0,0 +1,35 @@ +{ config, pkgs, ... }: +let + downloadsDir = "/home/imsohexy/Downloads/dl"; + incompleteDownloadsDir = "/home/imsohexy/Downloads/dl/incomplete"; + watchTorrentFilesOn = "/home/an/Downloads/qute"; +in +{ + services.transmission = { + enable = true; + settings = { + "download-dir" = downloadsDir; + "download-queue-enabled" = true; + "download-queue-size" = 5; + "incomplete-dir" = incompleteDownloadsDir; + "incomplete-dir-enabled" = true; + "peer-port" = 51413; + "peer-port-random-high" = 65535; + "peer-port-random-low" = 49152; + "prefetch-enabled" = true; + "rename-partial-files" = true; + "rpc-authentication-required" = false; + "rpc-bind-address" = "127.0.0.1"; + "rpc-enabled" = true; + "rpc-port" = 9091; + "rpc-whitelist-enabled" = true; + "script-torrent-done-enabled" = false; + "start-added-torrents" = true; + "trash-original-torrent-files" = false; + "umask" = 18; + "utp-enabled" = true; + "watch-dir" = watchTorrentFilesOn; + "watch-dir-enabled" = false; + }; + }; +} |
