Still broken but doesn't really matter. I'm breaking up loads of changes and this is a best guess of what I was doing…
HQGTEK3V64DVWXIUR47TDILPOVGAIZTJZDWGDHWNTL7NU66EE2DQC { lib, inputs, ... }:letinherit (lib) const;# Extend nixpkgs.lib with nix-darwin.lib, then our custom lib.lib' = inputs.os.lib.extend (const <| const <| inputs.os-darwin.lib);libCustom = lib'.extend <| import ../lib inputs;in{# Add yuzu-dendritic to the flake outputsconfig.flake.nixosConfigurations.yuzu-dendritic =libCustom.mkNixos "x86_64-linux" "yuzu-dendritic";}
{ inputs, lib, ... }:letinherit (builtins) pathExists readDir;inherit (lib)filterAttrshasSuffixmapAttrs'nameValuePairremoveSuffix;newHostsDir = ../new-hosts;hasNewHosts = pathExists newHostsDir;# Read all .host.nix files from new-hosts directorynewHostsFiles =if hasNewHoststhenreadDir newHostsDir|> filterAttrs (name: type: type == "regular" && hasSuffix ".host.nix" name)|> mapAttrs' (name: _value:nameValuePair (removeSuffix ".host.nix" name) (import (newHostsDir + "/${name}") { inherit lib inputs; }))else { };in{# Each .host.nix file should return a flake-parts module that sets config.flake.*imports = builtins.attrValues newHostsFiles;}
{ inputs, ... }:{imports = [ inputs.parts.flakeModules.modules ];}