Update acme config and remove secretPath reference.

This commit is contained in:
Kevin Baensch 2023-09-10 15:24:35 +02:00
parent b5a6498620
commit b699e795ae
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -9,8 +9,6 @@ in mkIf (elem "acme" cfg.services) {
security.acme = {
# see https://letsencrypt.org/repository/
acceptTerms = true;
email = fn.fileContentsOr
(toPath "${cfg.secretPath}/acme.mailAddr")
"${(elemAt cfg.mailAccounts 0).name}@${cfg.domain}";
defaults.email = "${(elemAt cfg.mailAccounts 0).name}@${cfg.domain}";
};
}