From c6b6a3e6c702834eac2b633db2ed4c397b4ae113 Mon Sep 17 00:00:00 2001 From: adikro Date: Mon, 18 May 2026 15:25:50 +0200 Subject: set up disko, zfs, clamav aide, backup, nfs, zfs for oci and ups --- os/srv/clamav.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 os/srv/clamav.nix (limited to 'os/srv/clamav.nix') 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 ]; + }; +} -- cgit v1.3