diff options
author | Léo Gaspard <leo@gaspard.io> | 2017-12-31 03:40:13 +0100 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2018-01-06 16:52:14 +0100 |
commit | 7b878a443aff940f09699e1707655a7fd6704030 (patch) | |
tree | 275178634da62d05b148926cf408d9e3d0e5f3fc /nixos/modules | |
parent | b2d2b3777126d9695f5f8d79132b210c47a113a9 (diff) |
nixos/clamav: replace mkIf [] with optional
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/security/clamav.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/security/clamav.nix b/nixos/modules/services/security/clamav.nix index 7de2d121e76cf..4161c61ed375e 100644 --- a/nixos/modules/services/security/clamav.nix +++ b/nixos/modules/services/security/clamav.nix @@ -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 ]; |