ma torrent/rtorrent: use upstream rtorrent service

This commit is contained in:
makefu 2022-06-06 21:24:11 +02:00
parent 2819c4e1d9
commit 6966e7ee8d
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -7,15 +7,17 @@ let
daemon-port = 58846; daemon-port = 58846;
dldir = config.makefu.dl-dir; dldir = config.makefu.dl-dir;
in { in {
services.rtorrent.enable = true; services.rtorrent = {
services.rtorrent.user = "rtorrent"; enable = true;
services.rtorrent.group = "download"; user = "rtorrent";
services.rtorrent.downloadDir = dldir; port = peer-port;
services.rtorrent.configText = '' openFirewall = true;
group = "download";
downloadDir = dldir;
configText = ''
schedule2 = watch_start, 10, 10, ((load.start, (cat, (cfg.watch), "/media/cloud/watch/*.torrent"))) schedule2 = watch_start, 10, 10, ((load.start, (cat, (cfg.watch), "/media/cloud/watch/*.torrent")))
''; '';
};
services.rtorrent.openFirewall = true;
systemd.services.flood = { systemd.services.flood = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];