nix: add 'nixpkgs-fmt' pre-commit hook
You must run `pre-commit install` for them them to take effect.
This commit is contained in:
parent
edbe654df6
commit
22232267e3
10
.pre-commit-config.yaml
Normal file
10
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
repos:
|
||||
- repo: 'local'
|
||||
hooks:
|
||||
- id: 'nixpkgs-fmt'
|
||||
name: 'nixpkgs-fmt'
|
||||
description: 'Format nix code with nixpkgs-fmt'
|
||||
entry: 'nixpkgs-fmt'
|
||||
language: 'system'
|
||||
files: '\.nix$'
|
||||
always_run: true
|
Loading…
Reference in a new issue