{ nixpkgs }: let mkHost = system: hostname: modules: { "${hostname}" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ../modules ../users ] ++ modules; specialArgs = { inherit hostname nixpkgs; }; }; }; 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 nixpkgs mkHost hosts; }; in hosts { "x86_64-linux" = [ "thyme" ]; } // hostsImport ./ades