From 9c3645b9eb8affa1cfa834e7259a56b4ac38d515 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 8 Mar 2025 20:00:18 -0600 Subject: [PATCH] modified setup function so now domain is a variable --- modules/servers/setup.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;