{ inputs }: let inherit (inputs) nixpkgs; mkHost = system: hostname: modules: { "${hostname}" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ../modules ../users ] ++ modules; specialArgs = { inherit hostname inputs; tlib = import ../lib { }; }; }; }; inherit (nixpkgs.lib.attrsets) mergeAttrsList; inherit (builtins) concatLists attrValues mapAttrs map; hosts = systemsHosts: mergeAttrsList (concatLists (attrValues (mapAttrs (system: hostnames: map (h: mkHost system h [./${h}]) hostnames) systemsHosts))); hostsImport = file: import file { inherit inputs mkHost hosts; }; in hosts { "x86_64-linux" = [ "thyme" "tomato" ]; "aarch64-linux" = [ "carrot" "radish" ]; } // hostsImport ./bean