summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2023-11-26 22:38:14 +0000
committerYt <happysalada@tuta.io>2023-11-28 14:32:45 +0000
commit12a1aaa6e65de022838487c3749a18660b89f07a (patch)
tree54ea46ea53ded58549def88bf019577c53d90d38 /nixos
parentc130043cf7e2a8394e6e077861e4f44319ce0298 (diff)
nixos/clamav: ensure freshclam starts before clamav (if enabled)
(cherry picked from commit 1ee22608c634b7db6a16089c399eef29ad26959b)
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/security/clamav.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/security/clamav.nix b/nixos/modules/services/security/clamav.nix
index 34897a9ac7db8..d749a16c1e3f5 100644
--- a/nixos/modules/services/security/clamav.nix
+++ b/nixos/modules/services/security/clamav.nix
@@ -103,7 +103,8 @@ in
 
     systemd.services.clamav-daemon = mkIf cfg.daemon.enable {
       description = "ClamAV daemon (clamd)";
-      after = optional cfg.updater.enable "clamav-freshclam.service";
+      after = optionals cfg.updater.enable [ "clamav-freshclam.service" ];
+      wants = optionals cfg.updater.enable [ "clamav-freshclam.service" ];
       wantedBy = [ "multi-user.target" ];
       restartTriggers = [ clamdConfigFile ];