append vs merge and replace deprecated type.

This commit is contained in:
Joseph Hanson 2024-07-13 07:46:13 -05:00
parent 71fe23ddbb
commit bfae2f67cc
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -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" ];
};
};
}