Use package option for nixfmt pre-commit hook
This commit is contained in:
parent
3c1b019a9f
commit
a0294100f8
1 changed files with 4 additions and 5 deletions
|
@ -211,7 +211,6 @@
|
|||
inputs',
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -219,7 +218,10 @@
|
|||
pre-commit = {
|
||||
settings = {
|
||||
hooks = {
|
||||
nixfmt.enable = true;
|
||||
nixfmt = {
|
||||
enable = true;
|
||||
package = pkgs.nixfmt-rfc-style;
|
||||
};
|
||||
deadnix.enable = true;
|
||||
black.enable = true;
|
||||
shellcheck = {
|
||||
|
@ -228,9 +230,6 @@
|
|||
};
|
||||
shfmt.enable = true;
|
||||
};
|
||||
tools = {
|
||||
nixfmt = lib.mkForce pkgs.nixfmt-rfc-style;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue