{ lib, self, inputs, ... }: { imports = [ inputs.easy-hosts.flakeModule ]; /* Configure easy-hosts to automatically build nixosConfigurations System files are collected from the top level "systems" directory Corresponding modules are automatically injected, based on system type */ easy-hosts = { autoConstruct = true; path = ../../systems; perClass = class: { modules = (lib.optionals (class == "nixos") [ inputs.home-manager.nixosModules.default # Inject this flake's default nixosModule, # which passes helpers and namespace logic from flake-parts self.nixosModules.default ]) ++ (self.lib.filesystem.dirToModuleList ../${class}); }; }; }