Use package option for nixfmt pre-commit hook

This commit is contained in:
Erwin Boskma 2024-03-27 10:56:04 +01:00
parent 3c1b019a9f
commit a0294100f8
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -211,7 +211,6 @@
inputs', inputs',
pkgs, pkgs,
config, config,
lib,
... ...
}: }:
{ {
@ -219,7 +218,10 @@
pre-commit = { pre-commit = {
settings = { settings = {
hooks = { hooks = {
nixfmt.enable = true; nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
deadnix.enable = true; deadnix.enable = true;
black.enable = true; black.enable = true;
shellcheck = { shellcheck = {
@ -228,9 +230,6 @@
}; };
shfmt.enable = true; shfmt.enable = true;
}; };
tools = {
nixfmt = lib.mkForce pkgs.nixfmt-rfc-style;
};
}; };
}; };