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;
dldir = config.makefu.dl-dir;
in {
services.rtorrent.enable = true;
services.rtorrent.user = "rtorrent";
services.rtorrent.group = "download";
services.rtorrent.downloadDir = dldir;
services.rtorrent.configText = ''
schedule2 = watch_start, 10, 10, ((load.start, (cat, (cfg.watch), "/media/cloud/watch/*.torrent")))
'';
services.rtorrent.openFirewall = true;
services.rtorrent = {
enable = true;
user = "rtorrent";
port = peer-port;
openFirewall = true;
group = "download";
downloadDir = dldir;
configText = ''
schedule2 = watch_start, 10, 10, ((load.start, (cat, (cfg.watch), "/media/cloud/watch/*.torrent")))
'';
};
systemd.services.flood = {
wantedBy = [ "multi-user.target" ];