Merge pull request #128 from Infinisil/fix-enable-conditions
fix conditions for enabling services
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user