blob: 7fa0b93bd8b6929448e19344e497952a5c53b8a4 [file] [log] [blame]
{ config, lib, pkgs, ... }: let
mailDomains = [
"clicks.codes"
"coded.codes"
"hopescaramels.com"
"trans.gg"
"starrysky.fyi"
"a.starrysky.fyi"
"thecoded.prof"
];
mailACMEHosts = [
"mail.clicks.codes"
"mail.coded.codes"
"mail.trans.gg"
"mail.hopescaramels.com"
] ++ (
builtins.concatMap
(domain: [ domain "mail.${domain}" "imap.${domain}" "smtp.${domain}" ])
mailDomains
);
in {
security.acme = {
certs = lib.pipe mailACMEHosts [
(map (name: { inherit name; value = {}; }))
builtins.listToAttrs
];
defaults.postRun = "cp -r $(pwd) /opt/mailcow-dockerized/data/assets/ssl/";
};
}