Skip to content

Commit

Permalink
nixos/clamav: replace mkIf [] with optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog authored and joachifm committed Jan 6, 2018
1 parent b2d2b37 commit 7b878a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/security/clamav.nix
Expand Up @@ -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 ];

Expand Down

0 comments on commit 7b878a4

Please sign in to comment.