modified setup function so now domain is a variable

This commit is contained in:
Danilo Reyes 2025-03-08 20:00:18 -06:00
parent a0efbc5188
commit 9c3645b9eb

View File

@ -12,9 +12,13 @@ let
type = lib.types.str; type = lib.types.str;
default = name; default = name;
}; };
domain = lib.mkOption {
type = lib.types.str;
default = config.my.domain;
};
host = lib.mkOption { host = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "${subdomain}.${config.my.domain}"; default = "${subdomain}.${config.my.servers.${name}.domain}";
}; };
hostName = lib.mkOption { hostName = lib.mkOption {
type = lib.types.str; type = lib.types.str;