summary refs log tree commit diff
path: root/nixos/modules/services/mail/rspamd.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@speartail.com>2016-07-28 11:00:03 +0800
committerFranz Pletz <fpletz@fnordicwalking.de>2016-07-28 07:06:35 +0200
commit65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e (patch)
tree2e9263a24a2218c9772ed706e30b59014b049ba4 /nixos/modules/services/mail/rspamd.nix
parent55bd6da9fbd1f25b5aab94b045fbc89777d45b7b (diff)
downloadnixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.tar
nixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.tar.gz
nixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.tar.bz2
nixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.tar.lz
nixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.tar.xz
nixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.tar.zst
nixpkgs-65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e.zip
rspam module: use mkEnableOption
See #17329.
Diffstat (limited to 'nixos/modules/services/mail/rspamd.nix')
-rw-r--r--nixos/modules/services/mail/rspamd.nix9
1 files changed, 1 insertions, 8 deletions
diff --git a/nixos/modules/services/mail/rspamd.nix b/nixos/modules/services/mail/rspamd.nix
index 01f2f9e5d09..98489df7851 100644
--- a/nixos/modules/services/mail/rspamd.nix
+++ b/nixos/modules/services/mail/rspamd.nix
@@ -43,10 +43,7 @@ in
 
     services.rspamd = {
 
-      enable = mkOption {
-        default = false;
-        description = "Whether to run the rspamd daemon.";
-      };
+      enable = mkEnableOption "Whether to run the rspamd daemon.";
 
       debug = mkOption {
         default = false;
@@ -95,7 +92,6 @@ in
         '';
        };
     };
-
   };
 
 
@@ -135,9 +131,6 @@ in
         ${pkgs.coreutils}/bin/mkdir -p /var/lib/rspamd
         ${pkgs.coreutils}/bin/chown ${cfg.user}:${cfg.group} /var/lib/rspamd
       '';
-
     };
-
   };
-
 }