Remove non longer supported configurations (<21.05)

This commit is contained in:
Antoine Eiche 2021-07-23 23:21:36 +02:00
parent 864ea5bfef
commit 9578dbac69
2 changed files with 18 additions and 33 deletions

View file

@ -18,25 +18,13 @@
let
cfg = config.mailserver;
clamHasSettings = options.services.clamav.daemon ? settings;
in
with lib;
{
config = lib.mkIf (cfg.enable && cfg.virusScanning) {
# Remove extraConfig and settings conditional after 20.09 support is removed
services.clamav.daemon = {
enable = true;
} // (if clamHasSettings then {
settings.PhishingScanURLs = "no";
} else {
extraConfig = ''
PhishingScanURLs no
'';
});
};
services.clamav.updater.enable = true;
};
}