]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/transmission.nix
losurdo: enable hardened profile
[sourcephile-nix.git] / servers / losurdo / transmission.nix
1 { pkgs, lib, config, ... }:
2 let
3 inherit (config.users) users;
4 in
5 {
6 users.groups.transmission.members = [
7 users."julm".name
8 ];
9 services.transmission = {
10 enable = true;
11 home = "/var/torrents";
12 downloadDirPermissions = "770";
13 settings = {
14 dht-enabled = true;
15 incomplete-dir-enabled = false;
16 peer-port = 6882;
17 peer-port-random-on-start = false;
18 port-forwarding-enabled = true;
19 preallocation = 0;
20 rpc-bind-address = "127.0.0.1";
21 rpc-enabled = true;
22 rpc-port = 9091;
23 rpc-whitelist = "127.0.0.1";
24 rpc-whitelist-enabled = true;
25 speed-limit-up = 10;
26 speed-limit-up-enabled = true;
27 };
28 };
29 }