flake/dev: add a convenient devshell

This commit is contained in:
Gaetan Lepage 2024-03-01 22:43:05 +01:00 committed by Gaétan Lepage
parent d149f46b00
commit 274293fd69
5 changed files with 129 additions and 11 deletions

View file

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