diff --git a/assets/statix.toml b/assets/statix.toml new file mode 100644 index 0000000..3bab871 --- /dev/null +++ b/assets/statix.toml @@ -0,0 +1,6 @@ +disabled = [ + # Use "statix list" to map Wnn into names. + + # Currently not useful: need to better split .nix files first. + "repeated_keys" # a.b=, a.c= => a { b=, c= } +] diff --git a/pre-commit.nix b/pre-commit.nix index ed8bf1f..a75fe37 100644 --- a/pre-commit.nix +++ b/pre-commit.nix @@ -16,6 +16,9 @@ nixfmt-rfc-style.enable = true; deadnix.enable = true; nil.enable = true; - statix.enable = true; # Use: statix fix + statix = { + enable = true; + settings.config = "${./assets/statix.toml}"; + }; # Use: statix fix }; }