nixos-config/lib/fudo/mail/clamav.nix

26 lines
478 B
Nix
Raw Normal View History

2020-01-15 09:24:11 -08:00
{ config, pkgs, lib, ... }:
with lib;
2021-07-28 12:01:06 -07:00
let cfg = config.fudo.mail-server;
2020-01-15 09:24:11 -08:00
in {
options.fudo.mail-server.clamav = {
enable = mkOption {
description = "Enable virus scanning with ClamAV.";
type = types.bool;
default = true;
};
};
config = mkIf (cfg.enable && cfg.clamav.enable) {
services.clamav = {
daemon = {
enable = true;
2021-07-28 12:01:06 -07:00
settings = { PhishingScanURLs = "no"; };
2020-01-15 09:24:11 -08:00
};
updater.enable = true;
};
};
}