28 lines
513 B
Nix
28 lines
513 B
Nix
|
{ inputs, ... }:
|
||
|
{
|
||
|
imports = with inputs; [
|
||
|
git-hooks.flakeModule
|
||
|
];
|
||
|
|
||
|
perSystem =
|
||
|
{ pkgs, ... }:
|
||
|
{
|
||
|
pre-commit = {
|
||
|
inherit pkgs;
|
||
|
check.enable = true;
|
||
|
|
||
|
settings = {
|
||
|
hooks = {
|
||
|
treefmt.enable = true;
|
||
|
nil.enable = true;
|
||
|
statix.enable = true;
|
||
|
deadnix.enable = true;
|
||
|
shellcheck.enable = true;
|
||
|
};
|
||
|
|
||
|
excludes = [ "flake.lock" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|