rspam module: use mkEnableOption

See #17329.
This commit is contained in:
Peter Hoeg 2016-07-28 11:00:03 +08:00 committed by Franz Pletz
parent 55bd6da9fb
commit 65ef5d8f5b

View file

@ -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
'';
};
};
}