about 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:21:30 +0000
commitd97d2fb271e4d9d0f86cf704c6d9fb3aa851d80d (patch)
tree07af7493b5b03e6fa26f6854637c4b0cae298422 /nixos
parentbdba516867b8522af43eeabde1ba3bfb494d9007 (diff)
nixos/clamav: ensure freshclam starts before clamav (if enabled)
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 c3893f4b09b20..72a195d3a04ed 100644
--- a/nixos/modules/services/security/clamav.nix
+++ b/nixos/modules/services/security/clamav.nix
@@ -145,7 +145,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 ];