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

You must run `pre-commit install` for them them to take effect.
rocket-stable
Bruno BELANYI 2021-03-29 18:07:46 +00:00
parent edbe654df6
commit 22232267e3
1 changed files with 10 additions and 0 deletions

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