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

28 lines
538 B
Nix
Raw Normal View History

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