rspam module: use mkEnableOption
See #17329.
commit65ef5d8f5b7d38aeae541df2933948cbb9ea6a5e
authorPeter Hoeg <peter@speartail.com>
dateThu 28 Jul 2016, 11:00 (10 years ago)
parent55bd6da
nixos/modules/services/mail/rspamd.nix+1−8
@@ -43,10 +43,7 @@ in
4343
4444 services.rspamd = {
4545
46− enable = mkOption {
47− default = false;
48− description = "Whether to run the rspamd daemon.";
49− };
46+ enable = mkEnableOption "Whether to run the rspamd daemon.";
5047
5148 debug = mkOption {
5249 default = false;
@@ -95,7 +92,6 @@ in
9592 '';
9693 };
9794 };
98−
9995 };
10096
10197
@@ -135,9 +131,6 @@ in
135131 ${pkgs.coreutils}/bin/mkdir -p /var/lib/rspamd
136132 ${pkgs.coreutils}/bin/chown ${cfg.user}:${cfg.group} /var/lib/rspamd
137133 '';
138−
139134 };
140−
141135 };
142−
143136}