clamav, fix turning tv off on dell
This commit is contained in:
51
modules/services/clamav.nix
Normal file
51
modules/services/clamav.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.custom.services.clamav;
|
||||
in
|
||||
{
|
||||
options.custom.services.clamav = {
|
||||
enable = lib.mkEnableOption "Enables clamav";
|
||||
scanDirectories = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
default = [
|
||||
"/home"
|
||||
"/var/lib"
|
||||
"/tmp"
|
||||
"/etc"
|
||||
"/var/tmp"
|
||||
];
|
||||
description = "Directories to scan with clamscan.";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.clamav = {
|
||||
scanner.enable = true;
|
||||
scanner.scanDirectories = cfg.scanDirectories;
|
||||
updater.enable = true;
|
||||
daemon = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ExcludePath = [
|
||||
"^/proc"
|
||||
"^/dev"
|
||||
"^/sys"
|
||||
"^/var/lib/docker"
|
||||
"^/var/lib/samba/private"
|
||||
"^/var/lib/samba/winbindd_privileged/pipe"
|
||||
"^/var/lib/postfix/queue/"
|
||||
"^/var/lib/docker/overlay2"
|
||||
"^/var/lib/docker/volumes/backingFsBlockDev"
|
||||
"^/tmp/tmux-.*"
|
||||
"^/tmp/dotnet-diagnostic-.*"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
./adam-site.nix
|
||||
./adguard.nix
|
||||
./caldav.nix
|
||||
./clamav.nix
|
||||
./dnsmasq.nix
|
||||
./ente.nix
|
||||
./fileshelter.nix
|
||||
|
||||
Reference in New Issue
Block a user