diff --git a/flake.nix b/flake.nix index e883ac6..32e986b 100644 --- a/flake.nix +++ b/flake.nix @@ -77,7 +77,17 @@ nixpkgs-fmt.enable = true; statix.enable = true; deadnix.enable = true; - clippy.enable = true; + rust-overlay-clippy = { + enable = true; + name = "rust-overlay clippy"; + entry = "${rustToolchain}/bin/cargo-clippy clippy"; + files = "\\.rs$"; + excludes = [ "^$" ]; + types = [ "file" ]; + types_or = [ ]; + language = "system"; + pass_filenames = false; + }; }; }; };