diff options
author | Solene Rapenne <solene@perso.pw> | 2022-01-16 13:20:08 +0100 |
---|---|---|
committer | Solene Rapenne <solene@perso.pw> | 2022-02-28 22:51:07 +0100 |
commit | 317ca6bb4e8a0be5d7ab150ef896da6a0ab58843 (patch) | |
tree | 9da5c424a304eeb25d5fbb9e5cceef5ef5ddaf00 /nixos/modules/services | |
parent | 741f4a776927f2db571c7ce896728991ac0a4685 (diff) | |
download | nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.tar nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.tar.gz nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.tar.bz2 nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.tar.lz nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.tar.xz nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.tar.zst nixpkgs-317ca6bb4e8a0be5d7ab150ef896da6a0ab58843.zip |
clamav: remove freshclam service dependency
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/security/clamav.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nixos/modules/services/security/clamav.nix b/nixos/modules/services/security/clamav.nix index 340cbbf02fb..95a0ad8770e 100644 --- a/nixos/modules/services/security/clamav.nix +++ b/nixos/modules/services/security/clamav.nix @@ -9,7 +9,7 @@ let pkg = pkgs.clamav; toKeyValue = generators.toKeyValue { - mkKeyValue = generators.mkKeyValueDefault {} " "; + mkKeyValue = generators.mkKeyValueDefault { } " "; listsAsDuplicateKeys = true; }; @@ -30,7 +30,7 @@ in settings = mkOption { type = with types; attrsOf (oneOf [ bool int str (listOf str) ]); - default = {}; + default = { }; description = '' ClamAV configuration. Refer to <link xlink:href="https://linux.die.net/man/5/clamd.conf"/>, for details on supported values. @@ -59,7 +59,7 @@ in settings = mkOption { type = with types; attrsOf (oneOf [ bool int str (listOf str) ]); - default = {}; + default = { }; description = '' freshclam configuration. Refer to <link xlink:href="https://linux.die.net/man/5/freshclam.conf"/>, for details on supported values. @@ -104,7 +104,6 @@ in systemd.services.clamav-daemon = mkIf cfg.daemon.enable { description = "ClamAV daemon (clamd)"; after = optional cfg.updater.enable "clamav-freshclam.service"; - requires = optional cfg.updater.enable "clamav-freshclam.service"; wantedBy = [ "multi-user.target" ]; restartTriggers = [ clamdConfigFile ]; @@ -134,7 +133,7 @@ in systemd.services.clamav-freshclam = mkIf cfg.updater.enable { description = "ClamAV virus database updater (freshclam)"; restartTriggers = [ freshclamConfigFile ]; - + after = [ "network-online.target" ]; preStart = '' mkdir -m 0755 -p ${stateDir} chown ${clamavUser}:${clamavGroup} ${stateDir} |