Merge pull request #128 from Infinisil/fix-enable-conditions

fix conditions for enabling services
This commit is contained in:
Robin Raymond 2018-06-09 15:18:46 +02:00 committed by GitHub
commit f016b9689a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;