clan.static-hosts: excludeHosts should be empty if topLevelDomain is defined.

This commit is contained in:
Ingolf Wagner 2024-06-02 20:57:15 +02:00
parent 0993fe45f6
commit 6c4263a900
No known key found for this signature in database
GPG Key ID: 76BF5F1928B9618B

View File

@ -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 {