From 6c487331532019db5c3382edc0b18ab4fe892609 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 22 Aug 2016 18:43:38 +0200 Subject: m 1 omo: configure deluge --- makefu/1systems/omo.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'makefu') diff --git a/makefu/1systems/omo.nix b/makefu/1systems/omo.nix index 3aa5e943e..96f7be9fc 100644 --- a/makefu/1systems/omo.nix +++ b/makefu/1systems/omo.nix @@ -50,11 +50,24 @@ in { #../2configs/share-user-sftp.nix ../2configs/omo-share.nix ../2configs/tinc/retiolum.nix + ../2configs/torrent.nix ## as long as pyload is not in nixpkgs: # docker run -d -v /var/lib/pyload:/opt/pyload/pyload-config -v /media/crypt0/pyload:/opt/pyload/Downloads --name pyload --restart=always -p 8112:8000 -P writl/pyload ]; + makefu.full-populate = true; + makefu.deluge.cfg = { + max_active_seeding = 1; + stop_seed_ratio = 1; + natpmp = true; + upnp = true; + max_upload_speed = 200; + }; + users.groups.share = { + gid = config.krebs.lib.genid "share"; + members = [ "makefu" "misa" ]; + }; networking.firewall.trustedInterfaces = [ primaryInterface ]; # udp:137 udp:138 tcp:445 tcp:139 - samba, allowed in local net # tcp:80 - nginx for sharing files -- cgit v1.2.3