summary refs log tree commit diff
path: root/nixos/tests/deluge.nix
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-07-01 16:08:27 +0100
committerDavid Wood <david@davidtw.co>2019-07-02 22:26:34 +0100
commit9837facf21113c5c48ed80dab7d5ce1e387ee2f6 (patch)
tree82fd2e30d6a997721ba3ec52543c90d520788e1a /nixos/tests/deluge.nix
parentf08b05d89fb0a0a975f3c9feaf48e80cb85bc615 (diff)
nixos/deluge: user, group and web firewall opts.
This commit adds new options to the Deluge service:

- Allow configuration of the user/group which runs the deluged daemon.
- Allow configuration of the user/group which runs the deluge web
  daemon.
- Allow opening firewall for the deluge web daemon.
Diffstat (limited to 'nixos/tests/deluge.nix')
-rw-r--r--nixos/tests/deluge.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/tests/deluge.nix b/nixos/tests/deluge.nix
index 22ad84e7bff1c..b58030409b5cf 100644
--- a/nixos/tests/deluge.nix
+++ b/nixos/tests/deluge.nix
@@ -8,9 +8,11 @@ import ./make-test.nix ({ pkgs, ...} : {
     simple = {
       services.deluge = {
         enable = true;
-        web.enable = true;
+        web = {
+          enable = true;
+          openFirewall = true;
+        };
       };
-      networking.firewall.allowedTCPPorts = [ 8112 ];
     };
 
     declarative =