aboutsummaryrefslogtreecommitdiff
path: root/modules/media/default.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-06-08 21:04:49 +0530
committerAkshay Nair <phenax5@gmail.com>2025-06-10 16:18:26 +0530
commit7a8a09cdc21939fc2e6bc2c762e9b89cf87feb91 (patch)
tree4f48e0b2ccfa85b1fdd5f7b28e8b72082b7df60c /modules/media/default.nix
parent969a9a311d24548c6632ddcdc4f903ffa48c5ca6 (diff)
downloadhomeserver-nixos-config-7a8a09cdc21939fc2e6bc2c762e9b89cf87feb91.tar.gz
homeserver-nixos-config-7a8a09cdc21939fc2e6bc2c762e9b89cf87feb91.zip
Refactor transmission + expose transmission rpc port
Diffstat (limited to '')
-rw-r--r--modules/media/default.nix29
1 files changed, 3 insertions, 26 deletions
diff --git a/modules/media/default.nix b/modules/media/default.nix
index 0708d8e..c8b01a4 100644
--- a/modules/media/default.nix
+++ b/modules/media/default.nix
@@ -1,8 +1,10 @@
-{ pkgs, ... }:
+{ ... }:
let
config = import ./config.nix;
in
{
+ imports = [ ./torrent.nix ];
+
systemd.tmpfiles.rules = [
"d ${config.mediaBaseDir} 0770 - ${config.group} - -"
"d ${config.downloadsDir} 0770 - ${config.group} - -"
@@ -45,29 +47,4 @@ in
openFirewall = true;
group = config.group;
};
-
- services.transmission = {
- enable = true;
- group = config.group;
- settings = {
- "download-dir" = config.downloadsDir;
- "download-queue-enabled" = true;
- "download-queue-size" = 5;
- "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;
- };
- };
}