diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/media/default.nix | 29 |
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; - }; - }; } |
