services.clamav.clamonacc.enable
NixOS option
Whether to enable ClamAV on-access scanner. The settings for ClamAV’s on-access scanner is configured in clamd.conf via services.clamav.daemon.settings. Refer to https://docs.clamav.net/manual/OnAccess.html on how to configure it. Example to scan /home/foo/Downloads (and block access until scanning is completed) would be: services.clamav = { daemon.enable = true; clamonacc.enable = true; daemon.settings = { OnAccessPrevention = true; OnAccessIncludePath = "/home/foo/Downloads"; }; };
type: booleanDefault
false
Example
declared in: nixos/modules/services/security/clamav.nixView source on NixOS/nixpkgs →true