mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-07 07:10:07 +09:00
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:
@@ -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$
|
||||
|
||||
|
||||
Reference in New Issue
Block a user