This commit is contained in:
2023-08-14 08:46:41 +03:00
parent 7fcb4b7ad0
commit 98a4ad79f8
2 changed files with 70 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ in {
zones = lib.mkOption {
default = {};
type = attrsOf (submodule (
{...}: {
{name, ...}: {
options = {
accountKey = lib.mkOption {type = path;};
days = lib.mkOption {
@@ -66,6 +66,17 @@ in {
type = bool;
default = false;
};
# Warning: paths here are here to be read from. Changing them will
# not place the files somewhere else.
certFile = lib.mkOption {
type = str;
default = "/var/lib/nsd-acme/${name}/${name}/cert.pem";
};
keyFile = lib.mkOption {
type = str;
default = "/var/lib/nsd-acme/${name}/private/${name}/key.pem";
};
};
}
));