Fix using an option before it is defined

This commit is contained in:
RGBCube 2024-06-04 18:56:39 +03:00
parent 0d51a32e47
commit fa730af715
No known key found for this signature in database

View File

@ -676,8 +676,8 @@ in
}; };
acmeCertificateName = mkOption { acmeCertificateName = mkOption {
type = types.str; type = with types; nullOr str;
default = cfg.fqdn; default = cfg.fqdn or null;
example = "example.com"; example = "example.com";
description = '' description = ''
({option}`mailserver.certificateScheme` == `acme`) ({option}`mailserver.certificateScheme` == `acme`)