mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 03:35:21 +02:00
flake/dev: add a convenient devshell
This commit is contained in:
parent
d149f46b00
commit
274293fd69
5 changed files with 129 additions and 11 deletions
22
flake-modules/dev/default.nix
Normal file
22
flake-modules/dev/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue