diff options
Diffstat (limited to 'os/srv/clamav.nix')
| -rw-r--r-- | os/srv/clamav.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/os/srv/clamav.nix b/os/srv/clamav.nix new file mode 100644 index 0000000..cc84802 --- /dev/null +++ b/os/srv/clamav.nix @@ -0,0 +1,27 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.os.srv.clamav; +in +{ + options.os.srv.clamav.enable = lib.mkEnableOption "enables clamav scanning"; + config = lib.mkIf cfg.enable { + services.clamav = { + daemon = { + enable = true; + settings = { + MaxThreads = 20; + MaxQueue = 100; + }; + }; + scanner.enable = true; + updater.enable = true; + fangfrisch.enable = true; + }; + environment.systemPackages = [ pkgs.aide ]; + }; +} |
