fix conditions for enabling services

Without this fix, kresd and others would get enabled even though the
main mailserver option is disabled.
This commit is contained in:
Silvan Mosberger 2018-05-22 23:08:49 +02:00
parent 68232ddf87
commit 845e06e61a
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7
7 changed files with 11 additions and 11 deletions

View file

@ -20,7 +20,7 @@ let
cfg = config.mailserver;
in
{
config = lib.mkIf cfg.virusScanning {
config = lib.mkIf (cfg.enable && cfg.virusScanning) {
services.clamav.daemon.enable = true;
services.clamav.updater.enable = true;
};