From cbb1e217d583f7c096a636704d73bb95332b6256 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 27 Mar 2026 17:45:16 +0000 Subject: [PATCH] Add statix config --- assets/statix.toml | 6 ++++++ pre-commit.nix | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 assets/statix.toml 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 }; }