diff --git a/cluster/services/ways/default.nix b/cluster/services/ways/default.nix index 67ff6ef..6330d33 100644 --- a/cluster/services/ways/default.nix +++ b/cluster/services/ways/default.nix @@ -13,6 +13,7 @@ enable = true; deps = [ "nginx" "acme-client" "dns" "certificates" "consul" ]; settings = ./simulacrum/test.nix; + availableNodes = lib.take 3 config.services.ways.nodes.host; }; }; diff --git a/cluster/services/ways/simulacrum/test.nix b/cluster/services/ways/simulacrum/test.nix index e2b3b8e..d938a17 100644 --- a/cluster/services/ways/simulacrum/test.nix +++ b/cluster/services/ways/simulacrum/test.nix @@ -20,7 +20,7 @@ in }; }; } - (lib.genAttrs cluster.config.services.ways.nodes.host (lib.const { + (lib.genAttrs cluster.config.services.ways.simulacrum.availableNodes (lib.const { services.nginx.upstreams.nowhere.servers = { "${(builtins.head config.nodes.nowhere.networking.interfaces.eth1.ipv4.addresses).address}:8080" = {}; };