Skip to content

Commit d89160e

Browse files
committed
chore: use stable rtorrent release
1 parent d009fa1 commit d89160e

File tree

1 file changed

+42
-14
lines changed

1 file changed

+42
-14
lines changed

mross/seedbox.nix

+42-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,36 @@
1-
{ pkgs, config, lib, ... }:
1+
{
2+
pkgs,
3+
config,
4+
lib,
5+
...
6+
}:
27
let
3-
unstable = import <nixos-unstable> { };
48
in
9+
# unstable = import <nixos-unstable> { };
510
{
6-
users.groups.media.members = [ "plex" "radarr" "sonarr" "deluge" "tchekda" "nginx" ];
11+
users.groups.media.members = [
12+
"plex"
13+
"radarr"
14+
"sonarr"
15+
"deluge"
16+
"tchekda"
17+
"nginx"
18+
];
719

820
networking.firewall = {
921
# rTorrent incoming
10-
allowedTCPPortRanges = [{ from = 40000; to = 59000; }];
11-
allowedUDPPortRanges = [{ from = 40000; to = 59000; }];
22+
allowedTCPPortRanges = [
23+
{
24+
from = 40000;
25+
to = 59000;
26+
}
27+
];
28+
allowedUDPPortRanges = [
29+
{
30+
from = 40000;
31+
to = 59000;
32+
}
33+
];
1234
# DHT
1335
allowedUDPPorts = [ 6881 ];
1436
};
@@ -19,32 +41,39 @@ in
1941
openFirewall = true;
2042
};
2143

22-
sonarr.enable = true;
23-
radarr.enable = true;
44+
sonarr = {
45+
enable = true;
46+
group = "media";
47+
};
48+
radarr = {
49+
enable = true;
50+
group = "media";
51+
};
2452

2553
rtorrent = {
2654
enable = true;
27-
package = unstable.rtorrent;
55+
# package = unstable.rtorrent;
2856
dataPermissions = "0777";
2957
downloadDir = "/srv/downloads";
3058
group = "media";
3159
configText = ''
3260
dht.mode.set = auto
3361
dht.port.set = 6881
34-
62+
3563
log.add_output = "debug", "log"
36-
64+
3765
# network.http.proxy_address.set = socks5h://45.67.230.130:30289
3866
# network.port_random.set = no
3967
network.port_range.set = 40000-59000
40-
68+
4169
protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
4270
protocol.pex.set = 1
4371
4472
schedule2 = scgi_permission,0,0,"execute.nothrow=chmod,777,/run/rtorrent/rpc.sock"
45-
73+
schedule2 = data_permission,0,0,"execute.nothrow=chgrp,media,/srv/downloads"
74+
4675
system.umask.set = 000
47-
76+
4877
trackers.use_udp.set = 1
4978
'';
5079
};
@@ -69,4 +98,3 @@ in
6998
};
7099
};
71100
}
72-

0 commit comments

Comments
 (0)