]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/transmission.nix
knot: add whoami4.sourcephile.fr
[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 peer-port = 6882;
15 dht-enabled = true;
16 port-forwarding-enabled = true;
17 peer-port-random-on-start = false;
18 rpc-enabled = true;
19 rpc-port = 9091;
20 rpc-bind-address = "127.0.0.1";
21 preallocation = 0;
22 rpc-whitelist = "127.0.0.1";
23 rpc-whitelist-enabled = true;
24 speed-limit-up = 10;
25 speed-limit-up-enabled = true;
26 };
27 };
28 }