blob: 9073d56da30cab2e1df2c9177008bc32e75e4922 [file] [log] [blame]
{ config, lib, pkgs, ... }: let
mailDomains = [
"clicks.codes"
"coded.codes"
"hopescaramels.com"
"trans.gg"
"starrysky.fyi"
"a.starrysky.fyi"
"thecoded.prof"
"turquoise.fyi"
];
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/";
};
}