Add pre-commit hooks for nixfmt, deadnix, and statix

Also, exclude .pre-commit-config.yaml from the SOPS differ
This commit is contained in:
Gene Liverman 2026-03-14 01:04:27 -04:00
parent c1a53997ce
commit 0dea1aab28
No known key found for this signature in database
23 changed files with 50 additions and 41 deletions

25
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,25 @@
repos:
- repo: local
hooks:
- id: nixfmt
name: nixfmt
entry: nix
language: system
types: [nix]
pass_filenames: false
args: ["fmt"]
- id: deadnix
name: deadnix
entry: deadnix
language: system
types: [nix]
args: ["./modules", "./lib"]
- id: statix
name: statix
entry: statix
language: system
types: [nix]
args: ["check", "--", "."]