nix: add 'nixpkgs-fmt' pre-commit hook

You must run `pre-commit install` for them them to take effect.
This commit is contained in:
Bruno BELANYI 2021-03-29 18:07:46 +00:00
parent edbe654df6
commit 22232267e3

10
.pre-commit-config.yaml Normal file
View 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