aboutsummaryrefslogtreecommitdiff
path: root/modules/torrent.home.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-02-17 23:30:14 +0530
committerAkshay Nair <phenax5@gmail.com>2021-02-17 23:30:14 +0530
commit24589a4689ec7c4a3c722daeece04d76dd5b7f12 (patch)
tree6b3953b88f75a60c34f79946d1ccfb3e5b030324 /modules/torrent.home.nix
parent10ef9ed4d2594679c38c46703f863419c9f0ada4 (diff)
downloadnixos-config-24589a4689ec7c4a3c722daeece04d76dd5b7f12.tar.gz
nixos-config-24589a4689ec7c4a3c722daeece04d76dd5b7f12.zip
Moves configuration around to modules
Diffstat (limited to '')
-rw-r--r--modules/torrent.home.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/torrent.home.nix b/modules/torrent.home.nix
new file mode 100644
index 0000000..99f43d6
--- /dev/null
+++ b/modules/torrent.home.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;
+ "script-torrent-done-filename" = "";
+ "start-added-torrents" = true;
+ "trash-original-torrent-files" = false;
+ "umask" = 18;
+ "utp-enabled" = true;
+ "watch-dir" = watchTorrentFilesOn;
+ "watch-dir-enabled" = false;
+ };
+ };
+}