Autopilot: automatically load/export user defined library and flake-parts modules

I somehow thought 1 file 1 function is a good idea, and got tired of explicitly importing files. So, I made autopilot to do this for me automatically.

It can:

  • import functions and make them available to flake-parts modules
  • transform kebab-case filenames to camelCase function names
  • extend user defined functions with arbitrary third party libraries and use them in modules but not exporting them in the final flake outputs
  • easily set multiple instances of nixpkgs with configs and overlays for perSystem configs
  • automatically import all flake-parts modules

PS: massive shout out to infinisil for making The Nix Hours series!

2 Likes

Call it part-loader?

1 Like

auto-loader, perhaps, maybe?

2 Likes