nix-config/flake/checks.nix

26 lines
394 B
Nix

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