added clamav

This commit is contained in:
xqtc161 2024-02-10 22:49:13 +01:00
parent 13a8cd116c
commit c58269d635
2 changed files with 14 additions and 0 deletions

12
hosts/antivirus.nix Normal file
View file

@ -0,0 +1,12 @@
{config, lib, pkgs, ...}:
{
services.clamav = {
updater.enable = true;
updater.settings = {
LogVerbose = true;
};
updater.interval = "hourly";
daemon.enable = true;
};
}

View file

@ -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;
};