diff options
author | happysalada <raphael@megzari.com> | 2024-01-21 11:37:54 -0500 |
---|---|---|
committer | happysalada <raphael@megzari.com> | 2024-01-21 11:37:54 -0500 |
commit | f3b08ca5a6be42e01f668a9f6224f403ccb08bb6 (patch) | |
tree | fb29c0a7efac829ba6ec0c242c6f5265ea419675 /nixos/modules/services/security | |
parent | ceec8c94b8e6561b17967ef366dc1c703aabe26a (diff) | |
download | nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.tar nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.tar.gz nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.tar.bz2 nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.tar.lz nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.tar.xz nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.tar.zst nixlib-f3b08ca5a6be42e01f668a9f6224f403ccb08bb6.zip |
nixos/clamav: fix network-online requires assert
Diffstat (limited to 'nixos/modules/services/security')
-rw-r--r-- | nixos/modules/services/security/clamav.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/security/clamav.nix b/nixos/modules/services/security/clamav.nix index d3164373ec01..4480c0cae60c 100644 --- a/nixos/modules/services/security/clamav.nix +++ b/nixos/modules/services/security/clamav.nix @@ -196,6 +196,7 @@ in systemd.services.clamav-freshclam = mkIf cfg.updater.enable { description = "ClamAV virus database updater (freshclam)"; restartTriggers = [ freshclamConfigFile ]; + requires = [ "network-online.target" ]; after = [ "network-online.target" ]; serviceConfig = { @@ -243,6 +244,7 @@ in systemd.services.clamav-fangfrisch = mkIf cfg.fangfrisch.enable { description = "ClamAV virus database updater (fangfrisch)"; restartTriggers = [ fangfrischConfigFile ]; + requires = [ "network-online.target" ]; after = [ "network-online.target" "clamav-fangfrisch-init.service" ]; serviceConfig = { |