nix-config/flake/checks.nix

34 lines
519 B
Nix
Raw Permalink Normal View History

2023-03-22 11:43:55 +01:00
{ inputs, ... }:
2023-03-07 11:49:12 +01:00
{
imports = [
inputs.pre-commit-hooks.flakeModule
];
2023-03-22 11:43:55 +01:00
perSystem = { ... }: {
pre-commit = {
# Add itself to `nix flake check`
check.enable = true;
2023-03-07 11:49:12 +01:00
settings = {
hooks = {
2023-05-03 17:14:24 +02:00
deadnix = {
enable = true;
};
nixpkgs-fmt = {
enable = true;
};
2023-03-07 11:49:12 +01:00
shellcheck = {
enable = true;
};
2023-05-06 20:01:25 +02:00
stylua = {
enable = true;
};
};
2023-03-07 11:49:12 +01:00
};
};
};
}