flake: format Nix with nixfmt

flake-checks moved its treefmt Nix formatter to nixfmt, so every .nix file
failed the formatting check. The devShell and the pre-commit hook shipped
nixpkgs-fmt, which reformatted them straight back.
This commit is contained in:
Kristoffer Dalby
2026-09-09 17:14:43 +00:00
parent 91935139ba
commit 8d89742a21
5 changed files with 87 additions and 54 deletions
+5 -4
View File
@@ -32,10 +32,11 @@ repos:
# Local hooks for project-specific tooling
- repo: local
hooks:
# nixpkgs-fmt for Nix files
- id: nixpkgs-fmt
name: nixpkgs-fmt
entry: nixpkgs-fmt
# nixfmt for Nix files; the same formatter the flake's treefmt check
# runs, so the hook and the check cannot disagree.
- id: nixfmt
name: nixfmt
entry: nixfmt
language: system
files: \.nix$