What is import-tree?
mainimport-tree is a Nix library designed to automate the discovery of Nix modules within a directory tree. Instead of manually maintaining an imports = [ ... ] list, you can point import-tree at a directory, and it will recursively generate a list of Nix module imports for you.
Key characteristics:
- Dependency-free: It does not require external Nix dependencies.
- Single-file: It is distributed as a single file, making it easy to integrate.
- Flexible usage: It can be used as a Nix Flake or as a standard Nix
import.