From 02112f071c0159aef79c29fbbb54278aa0aaa01c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 9 May 2020 11:14:37 +0100 Subject: [PATCH] clouvider-fra01: deluge --- ops/nixos/clouvider-fra01/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ops/nixos/clouvider-fra01/default.nix b/ops/nixos/clouvider-fra01/default.nix index b041c77cb1..750caaf38b 100644 --- a/ops/nixos/clouvider-fra01/default.nix +++ b/ops/nixos/clouvider-fra01/default.nix @@ -91,6 +91,8 @@ in { isSystemUser = true; extraGroups = [ "content" ]; }; + plex.extraGroups = [ "content" ]; + deluge.extraGroups = [ "content" ]; }; users.groups = { content = {}; @@ -115,5 +117,22 @@ in { package = depot.nix.pkgs.plex-pass; }; + services.deluge = { + enable = true; + declarative = true; + openFirewall = true; + dataDir = "/store/deluge"; + config = { + upnp = false; + natpmp = false; + max_active_seeding = 100; + max_active_downloading = 100; + max_active_limit = 200; + move_completed_paths_list = [ "/store/content/Anime" "/store/content/Films" "/store/content/TV" ]; + }; + + web.enable = true; + }; + system.stateVersion = "20.03"; }