Unify hook settings and fix warning

trace: warning: The option `settings.statix' defined in `/nix/store/plj05iykqma26y930qjf75zxp2qx02sl-source/flake.nix, via option perSystem' has been renamed to `hooks.statix.settings'.
This commit is contained in:
Gonne 2024-04-20 12:28:29 +02:00
parent 495c580653
commit 26a77ebfab

View file

@ -26,14 +26,15 @@
in {
check.enable = true;
settings = {
# for some reason statix takes it config differently than all the other hooks.
settings.statix = {
hooks = {
nil.enable = true;
statix = {
enable = true;
settings = {
format = "stderr";
ignore = generatedFiles;
};
hooks = {
nil.enable = true;
statix.enable = true;
};
deadnix = {
enable = true;
excludes = generatedFiles;