nix-community.nixvim/flake-modules/dev/default.nix

23 lines
502 B
Nix
Raw Normal View History

{ inputs, ... }: {
imports = [ inputs.pre-commit-hooks.flakeModule ./devshell.nix ];
perSystem = { pkgs, ... }: {
formatter = pkgs.nixfmt-rfc-style;
pre-commit = {
settings.hooks = {
nixfmt = {
package = pkgs.nixfmt-rfc-style;
enable = true;
};
statix = {
enable = true;
excludes =
[ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
};
2024-03-07 19:44:13 +01:00
typos.enable = true;
};
};
};
}