From c6eb1564932571537baef453175adf3878acbc64 Mon Sep 17 00:00:00 2001 From: Gonne Date: Sat, 20 Apr 2024 12:28:29 +0200 Subject: [PATCH] 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'. --- flake-module.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/flake-module.nix b/flake-module.nix index 82bf10f..0cb9369 100644 --- a/flake-module.nix +++ b/flake-module.nix @@ -26,14 +26,15 @@ in { check.enable = true; settings = { - # for some reason statix takes it config differently than all the other hooks. - settings.statix = { - format = "stderr"; - ignore = generatedFiles; - }; hooks = { nil.enable = true; - statix.enable = true; + statix = { + enable = true; + settings = { + format = "stderr"; + ignore = generatedFiles; + }; + }; deadnix = { enable = true; excludes = generatedFiles;