From f6fb52afbf0666834ce78f27ae3282d978a83515 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 2 Jun 2024 20:57:15 +0200 Subject: [PATCH] clan.static-hosts: excludeHosts should be empty if topLevelDomain is defined. --- clanModules/static-hosts/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clanModules/static-hosts/default.nix b/clanModules/static-hosts/default.nix index 34d7059b..70766b1a 100644 --- a/clanModules/static-hosts/default.nix +++ b/clanModules/static-hosts/default.nix @@ -3,7 +3,8 @@ options.clan.static-hosts = { excludeHosts = lib.mkOption { type = lib.types.listOf lib.types.str; - default = [ config.clanCore.machineName ]; + default = + if config.clan.static-hosts.topLevelDomain != "" then [ ] else [ config.clanCore.machineName ]; description = "Hosts that should be excluded"; }; topLevelDomain = lib.mkOption {