refactor(dotfiles): share Nix file discovery #101

Merged
alexion merged 3 commits from registry-use-collect-nix-files into main 2026-09-26 23:50:03 -04:00
Showing only changes of commit 11d11c7c02 - Show all commits

View File

@@ -0,0 +1,12 @@
## Discover Nix files
### Rule
Use `util.collectNixFiles` to discover Nix files.
Do not use `builtins.readDir` with a `.nix` suffix filter for this purpose.
Pass `util` to Nix functions that need the helper.
### Rationale
`util.collectNixFiles` centralizes recursive discovery of Nix files.
Repository Nix code uses one implementation.