refactor(dotfiles): centralize Nix file names

This commit was merged in pull request #107.
This commit is contained in:
2026-09-27 09:39:10 -04:00
parent 3b2d16743e
commit 43b3ff4b09
4 changed files with 15 additions and 5 deletions

View File

@@ -10,3 +10,14 @@ Pass `util` to Nix functions that need the helper.
`util.collectNixFiles` centralizes recursive discovery of Nix files.
Repository Nix code uses one implementation.
## Remove Nix file suffixes with the utility
### Rule
Use `util.removeNixSuffix` to remove a `.nix` suffix from a path.
Do not call `builtins.baseNameOf` or `lib.removeSuffix ".nix"` outside the utility definition.
### Rationale
The utility centralizes Nix file-name normalization.