{ lib, ... }: with lib; let nrNodes = 7; mkMachine = { name, type, opts ? { } }: rec { inherit name type opts; path = ./machines/${type}; gather = ./gathered/${name}; }; manager = mkMachine { name = "manager"; type = "manager"; }; nodes = genList (i: mkMachine { name = "node-${fixedWidthNumber 2 i}"; type = "node"; opts = { id = i; }; }) nrNodes; in concatLists [ [ manager ] nodes ]