3
0
Fork 0
forked from mirrors/nixpkgs

nixos/clamav: replace mkIf [] with optional

This commit is contained in:
Léo Gaspard 2017-12-31 03:40:13 +01:00 committed by Joachim Fasting
parent b2d2b37771
commit 7b878a443a
No known key found for this signature in database
GPG key ID: 5C204DF675C90294

View file

@ -97,8 +97,8 @@ in
systemd.services.clamav-daemon = optionalAttrs cfg.daemon.enable {
description = "ClamAV daemon (clamd)";
after = mkIf cfg.updater.enable [ "clamav-freshclam.service" ];
requires = mkIf cfg.updater.enable [ "clamav-freshclam.service" ];
after = optional cfg.updater.enable "clamav-freshclam.service";
requires = optional cfg.updater.enable "clamav-freshclam.service";
wantedBy = [ "multi-user.target" ];
restartTriggers = [ clamdConfigFile ];