diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-05-20 19:09:35 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-05-20 19:15:59 +0530 |
| commit | 8f302c8305c9a8e4d14a8741eaf684409341ccb8 (patch) | |
| tree | 0de9ab35272c7760284c4e69dbdeceec32bea099 /modules/torrent.nix | |
| parent | 46d64759838e2d837a3a6f9ef178edacc429deb8 (diff) | |
| download | nixos-config-8f302c8305c9a8e4d14a8741eaf684409341ccb8.tar.gz nixos-config-8f302c8305c9a8e4d14a8741eaf684409341ccb8.zip | |
Refactor overlays + torrent module
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; + }; + }; +} |
