From fa730af715ca289ce454834489639d601d82dea1 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 4 Jun 2024 18:56:39 +0300 Subject: [PATCH] Fix using an option before it is defined --- default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 6bd499c..021829a 100644 --- a/default.nix +++ b/default.nix @@ -676,8 +676,8 @@ in }; acmeCertificateName = mkOption { - type = types.str; - default = cfg.fqdn; + type = with types; nullOr str; + default = cfg.fqdn or null; example = "example.com"; description = '' ({option}`mailserver.certificateScheme` == `acme`)