From 22232267e3ff13f20b8b8e6a99ea8659f518b791 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 29 Mar 2021 18:07:46 +0000 Subject: [PATCH] nix: add 'nixpkgs-fmt' pre-commit hook You must run `pre-commit install` for them them to take effect. --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..45aa747 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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