diff options
| author | adikro <adikro@disroot.org> | 2026-05-18 15:25:50 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-05-18 15:25:50 +0200 |
| commit | c6b6a3e6c702834eac2b633db2ed4c397b4ae113 (patch) | |
| tree | 4ec03c63fac3c7d0e7caea31cbe9ec1317df8c2f /os/srv/clamav.nix | |
| parent | 62b7ca3cdfff5182daad7f4092b6861bbc93f04c (diff) | |
set up disko, zfs, clamav aide, backup, nfs, zfs for oci and ups
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 ]; + }; +} |
