append vs merge and replace deprecated type.
This commit is contained in:
parent
71fe23ddbb
commit
bfae2f67cc
1 changed files with 4 additions and 4 deletions
|
@ -18,17 +18,17 @@ in
|
||||||
description = "Path to the DNSimple token file";
|
description = "Path to the DNSimple token file";
|
||||||
};
|
};
|
||||||
provider = mkOption {
|
provider = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
example = "dnsimple";
|
example = "dnsimple";
|
||||||
description = "DNS provider";
|
description = "DNS provider";
|
||||||
};
|
};
|
||||||
domains = mkOption {
|
domains = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
example = "gandalf.jahanson.tech";
|
example = "gandalf.jahanson.tech";
|
||||||
description = "Domains to manage";
|
description = "Domains to manage";
|
||||||
};
|
};
|
||||||
email = mkOption {
|
email = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
example = "joe@veri.dev";
|
example = "joe@veri.dev";
|
||||||
description = "Email address for Let's Encrypt";
|
description = "Email address for Let's Encrypt";
|
||||||
};
|
};
|
||||||
|
@ -56,7 +56,7 @@ in
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"${appFolder}/cert:/cert"
|
"${appFolder}/cert:/cert"
|
||||||
] // optionals (cfg.provider == "dnsimple") [ "${cfg.dnsimpleTokenPath}:/config/dnsimple-token" ];
|
] ++ optionals (cfg.provider == "dnsimple") [ "${cfg.dnsimpleTokenPath}:/config/dnsimple-token" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue