zerotier-static-peers: use correct exclusion source
This commit is contained in:
@@ -38,7 +38,7 @@ in
|
|||||||
machines = builtins.readDir machineDir;
|
machines = builtins.readDir machineDir;
|
||||||
zerotierIpMachinePath = machines: machineDir + machines + "/facts/zerotier-ip";
|
zerotierIpMachinePath = machines: machineDir + machines + "/facts/zerotier-ip";
|
||||||
filteredMachines = lib.filterAttrs (
|
filteredMachines = lib.filterAttrs (
|
||||||
name: _: !(lib.elem name config.clan.static-hosts.excludeHosts)
|
name: _: !(lib.elem name config.clan.zerotier-static-peers.excludeHosts)
|
||||||
) machines;
|
) machines;
|
||||||
hosts = lib.mapAttrsToList (host: _: host) (
|
hosts = lib.mapAttrsToList (host: _: host) (
|
||||||
lib.mapAttrs' (
|
lib.mapAttrs' (
|
||||||
|
|||||||
Reference in New Issue
Block a user