summaryrefslogtreecommitdiff
path: root/os/srv/clamav.nix
blob: d2dc49fd35ec4dce6001fab38ba012aea476fd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }:
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;
    };
  };
}