Remove non longer supported configurations (<21.05)
This commit is contained in:
parent
864ea5bfef
commit
9578dbac69
|
@ -421,8 +421,7 @@ in
|
|||
The mailboxes for dovecot.
|
||||
Depending on the mail client used it might be necessary to change some mailbox's name.
|
||||
'';
|
||||
default = let
|
||||
defMailBoxes = {
|
||||
default = {
|
||||
Trash = {
|
||||
auto = "no";
|
||||
specialUse = "Trash";
|
||||
|
@ -440,8 +439,6 @@ in
|
|||
specialUse = "Sent";
|
||||
};
|
||||
};
|
||||
in if (versionAtLeast version "20.09pre") then defMailBoxes
|
||||
else (flip mapAttrsToList defMailBoxes (name: options: { inherit name; } // options));
|
||||
};
|
||||
|
||||
certificateScheme = mkOption {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue