diff --git a/lib/private.nix b/lib/private.nix index c377d02f..27ad5a41 100644 --- a/lib/private.nix +++ b/lib/private.nix @@ -47,13 +47,17 @@ rec { lib.getAttr user (getUsers type [ user ]); # Import modules with a set blocklist. - importModules = let + importModules = attrs: let blocklist = [ # The modules under this attribute are often incomplete and needing # very specific requirements that is 99% going to be absent from the # outside so we're not going to export it. "tasks" + + # Profiles are often specific to this project so there's not much point + # in exporting these. + "profiles" ]; - in attrs: + in lib.filterAttrs (n: v: !lib.elem n blocklist) (lib.mapAttrsRecursive (_: path: import path) attrs); }