blob: 9fd0b960f87dab9b980a174b3880b8c6780c0ea0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ pkgs, ... }:
let
config = import ./config.nix;
in
{
environment.systemPackages = with pkgs; [
tremc
];
services.transmission = {
enable = true;
group = config.group;
openRPCPort = true;
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" = "0.0.0.0";
"rpc-enabled" = true;
"rpc-port" = config.transmissionPort;
"rpc-whitelist-enabled" = false;
"script-torrent-done-enabled" = false;
"start-added-torrents" = true;
"trash-original-torrent-files" = false;
"umask" = 18;
"utp-enabled" = true;
};
};
systemd.services.transmission.unitConfig = {
RequiresMountsFor = config.mediaBaseDir;
};
}
|