{ nixpkgs, ... }@inputs: let lib = import ../lib nixpkgs; in rec { toPartialNixosConfig = { hostname, system }: { name = hostname; value = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs; }; modules = [ ../hosts/${hostname}/hardware-configuration.nix ../hosts/${hostname}/configuration.nix inputs.home-manager.nixosModules.default ]; }; }; compileSystems = systems: lib.right builtins.listToAttrs (map toPartialNixosConfig) systems; }