34 lines
602 B
Nix
34 lines
602 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = [ pkgs.clamav pkgs.curl ];
|
|
|
|
services.clamav = {
|
|
updater.enable = true;
|
|
daemon.enable = true;
|
|
|
|
scanner = {
|
|
enable = true;
|
|
interval = "*-*-* 04:00:00"; # Everyday at 4am
|
|
scanDirectories = [
|
|
"/etc"
|
|
"/home"
|
|
"/var/lib"
|
|
"/var/tmp"
|
|
"/tmp"
|
|
];
|
|
};
|
|
|
|
|
|
clamonacc.enable = true;
|
|
|
|
daemon.settings = {
|
|
OnAccessPrevention = true;
|
|
OnAccessIncludePath = "/mnt/data";
|
|
};
|
|
};
|
|
|
|
services.clamav.daemon.enable = true;
|
|
services.clamav.updater.enable = true;
|
|
services.clamav.clamonacc.enable = true;
|
|
} |