nix-config/flake/checks.nix
Bruno BELANYI b86d963a92
All checks were successful
ci/woodpecker/push/check Pipeline was successful
flake: checks: enable 'stylua'
2023-05-07 13:36:10 +01:00

34 lines
519 B
Nix

{ inputs, ... }:
{
imports = [
inputs.pre-commit-hooks.flakeModule
];
perSystem = { ... }: {
pre-commit = {
# Add itself to `nix flake check`
check.enable = true;
settings = {
hooks = {
deadnix = {
enable = true;
};
nixpkgs-fmt = {
enable = true;
};
shellcheck = {
enable = true;
};
stylua = {
enable = true;
};
};
};
};
};
}