{ lib, tree, ... }: with lib; let wrapImports = imports: mapAttrs (_: paths: { config, ... }: { config.home-manager.users.chaoticryptidz = { imports = singleton paths; }; }) imports; dirImports = wrapImports tree.prev; in dirImports // { base = { imports = [ dirImports.base tree.prev.nixos ]; }; }