From c58269d6351bfbce6e4debededeee1fa779467fa Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Sat, 10 Feb 2024 22:49:13 +0100 Subject: [PATCH] added clamav --- hosts/antivirus.nix | 12 ++++++++++++ hosts/lilith/default.nix | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 hosts/antivirus.nix diff --git a/hosts/antivirus.nix b/hosts/antivirus.nix new file mode 100644 index 0000000..35966aa --- /dev/null +++ b/hosts/antivirus.nix @@ -0,0 +1,12 @@ +{config, lib, pkgs, ...}: +{ + services.clamav = { + updater.enable = true; + updater.settings = { + LogVerbose = true; + }; + updater.interval = "hourly"; + daemon.enable = true; + }; +} + diff --git a/hosts/lilith/default.nix b/hosts/lilith/default.nix index 373c191..d62b73f 100644 --- a/hosts/lilith/default.nix +++ b/hosts/lilith/default.nix @@ -4,6 +4,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ../antivirus.nix #nixos-hardware.nixosModules.lenovo.thinkpad.t480 #(builtins.getFlake (builtins.fetchGit "github:NixOs/nixos-hardware")).nixosModules.lenovo-thinkpad-t480 ]; @@ -114,6 +115,7 @@ extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. packages = with pkgs; [ nushell + clamtk ]; shell = pkgs.nushell; };