summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-08-24 18:45:19 +0200
committerlassulus <lass@aidsballs.de>2016-08-24 18:45:19 +0200
commitbdb0d3d9cc72788a97d60195f95b7846c7d89375 (patch)
tree49a1ef3ecd03f364bbb6a29add035c2d580053ef /lass/2configs
parent11797ea564bb72f556e0aada82c33bad28702cae (diff)
l 2 downloading: transmission -> rtorrent
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/downloading.nix28
1 files changed, 13 insertions, 15 deletions
diff --git a/lass/2configs/downloading.nix b/lass/2configs/downloading.nix
index a6de7c581..1bba5b416 100644
--- a/lass/2configs/downloading.nix
+++ b/lass/2configs/downloading.nix
@@ -2,10 +2,7 @@
with config.krebs.lib;
-let
- rpc-password = import <secrets/transmission-pw>;
-in {
-
+{
users.extraUsers = {
download = {
name = "download";
@@ -39,19 +36,20 @@ in {
};
};
- services.transmission = {
+ krebs.rtorrent = {
enable = true;
- settings = {
- download-dir = "/var/download/finished";
- incomplete-dir = "/var/download/incoming";
- incomplete-dir-enabled = true;
-
- rpc-authentication-required = true;
- rpc-whitelist-enabled = false;
- rpc-username = "download";
- inherit rpc-password;
- peer-port = 51413;
+ web = {
+ enable = true;
+ enableAuth = true;
+ listenAddress = "9091";
+ authfile = <secrets/torrent-authfile>;
};
+ rutorrent.enable = true;
+ enableXMLRPC = true;
+ listenPort = 51413;
+ downloadDir = "/var/download/finished";
+ # dump old torrents into watch folder to have them re-added
+ watchDir = "/var/download/watch";
};
krebs.iptables = {