summary refs log tree commit diff
path: root/nixos/modules/services/torrent
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-04-25 14:54:34 -0500
committerGitHub <noreply@github.com>2018-04-25 14:54:34 -0500
commite4d2d32a32c2523dcab34200fce7f58196ab5c54 (patch)
treee01184ef46227de15078d892327b4a430da881d5 /nixos/modules/services/torrent
parent160d9ed652a56c804b3aaa012c9dec2aafef42df (diff)
parentfe840cd3339eba56855840630d22889ee1424bfb (diff)
downloadnixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.tar
nixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.tar.gz
nixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.tar.bz2
nixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.tar.lz
nixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.tar.xz
nixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.tar.zst
nixlib-e4d2d32a32c2523dcab34200fce7f58196ab5c54.zip
Merge pull request #33679 from flokli/deluge-module
Deluge: use mkEnableOption, add test
Diffstat (limited to 'nixos/modules/services/torrent')
-rw-r--r--nixos/modules/services/torrent/deluge.nix14
1 files changed, 2 insertions, 12 deletions
diff --git a/nixos/modules/services/torrent/deluge.nix b/nixos/modules/services/torrent/deluge.nix
index ec1e97f4125e..bff22cd13594 100644
--- a/nixos/modules/services/torrent/deluge.nix
+++ b/nixos/modules/services/torrent/deluge.nix
@@ -11,10 +11,7 @@ in {
   options = {
     services = {
       deluge = {
-        enable = mkOption {
-          default = false;
-          description = "Start the Deluge daemon";
-        };
+        enable = mkEnableOption "Deluge daemon";
 
         openFilesLimit = mkOption {
           default = openFilesLimit;
@@ -25,14 +22,7 @@ in {
         };
       };
 
-      deluge.web = {
-        enable = mkOption {
-          default = false;
-          description = ''
-            Start Deluge Web daemon.
-          '';
-        };
-      };
+      deluge.web.enable = mkEnableOption "Deluge Web daemon";
     };
   };