From 65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 28 Jul 2016 11:00:03 +0800 Subject: rspam module: use mkEnableOption See #17329. --- nixos/modules/services/mail/rspamd.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'nixos/modules/services/mail/rspamd.nix') 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 ''; - }; - }; - } -- cgit 1.4.1