628 B
628 B
Lint Fixer Instructions
Formatter
This project uses nixpkgs-fmt for Nix file formatting.
How to run
- Find changed
.nixfiles:git diff --name-only --diff-filter=d HEAD | grep '\.nix$' - Format only those files:
nix run nixpkgs#nixpkgs-fmt -- <file1.nix> <file2.nix> ... - Stage any formatting changes:
git add <formatted files>
Notes
- Only format files that were actually modified, not the entire repo.
- There is no
.editorconfigor other formatter config;nixpkgs-fmtuses its own defaults. - Non-Nix files do not need formatting.