Merge pull request #282147 from eclairevoyant/acme

nixos/acme: fix assertion for renamed option
This commit is contained in:
h7x4
2024-01-20 03:27:15 +01:00
committed by GitHub
+2 -2
View File
@@ -897,10 +897,10 @@ in {
certs = attrValues cfg.certs;
in [
{
assertion = cfg.email != null || all (certOpts: certOpts.email != null) certs;
assertion = cfg.defaults.email != null || all (certOpts: certOpts.email != null) certs;
message = ''
You must define `security.acme.certs.<name>.email` or
`security.acme.email` to register with the CA. Note that using
`security.acme.defaults.email` to register with the CA. Note that using
many different addresses for certs may trigger account rate limits.
'';
}