From bfae2f67cc0bf10f48ced8b287ec34438cc8ed06 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 13 Jul 2024 07:46:13 -0500 Subject: [PATCH] append vs merge and replace deprecated type. --- nixos/modules/nixos/containers/lego-auto/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/nixos/containers/lego-auto/default.nix b/nixos/modules/nixos/containers/lego-auto/default.nix index 0cbec30..6ea3c24 100644 --- a/nixos/modules/nixos/containers/lego-auto/default.nix +++ b/nixos/modules/nixos/containers/lego-auto/default.nix @@ -18,17 +18,17 @@ in description = "Path to the DNSimple token file"; }; provider = mkOption { - type = types.string; + type = types.str; example = "dnsimple"; description = "DNS provider"; }; domains = mkOption { - type = types.string; + type = types.str; example = "gandalf.jahanson.tech"; description = "Domains to manage"; }; email = mkOption { - type = types.string; + type = types.str; example = "joe@veri.dev"; description = "Email address for Let's Encrypt"; }; @@ -56,7 +56,7 @@ in volumes = [ "${appFolder}/cert:/cert" - ] // optionals (cfg.provider == "dnsimple") [ "${cfg.dnsimpleTokenPath}:/config/dnsimple-token" ]; + ] ++ optionals (cfg.provider == "dnsimple") [ "${cfg.dnsimpleTokenPath}:/config/dnsimple-token" ]; }; }; }