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

23 lines
417 B
Nix
Raw Normal View History

{inputs, ...}: {
imports = [
inputs.pre-commit-hooks.flakeModule
2024-03-01 22:43:05 +01:00
./devshell.nix
];
2024-03-01 22:43:05 +01:00
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
pre-commit = {
settings.hooks = {
alejandra.enable = true;
statix = {
enable = true;
excludes = [
"plugins/lsp/language-servers/rust-analyzer-config.nix"
];
};
};
};
};
}