diff --git a/modules/servers/setup.nix b/modules/servers/setup.nix index 1064a64..6a6f543 100644 --- a/modules/servers/setup.nix +++ b/modules/servers/setup.nix @@ -12,9 +12,13 @@ let type = lib.types.str; default = name; }; + domain = lib.mkOption { + type = lib.types.str; + default = config.my.domain; + }; host = lib.mkOption { type = lib.types.str; - default = "${subdomain}.${config.my.domain}"; + default = "${subdomain}.${config.my.servers.${name}.domain}"; }; hostName = lib.mkOption { type = lib.types.str;