nix-config/flake/checks.nix

26 lines
408 B
Nix
Raw Normal View History

{ self, inputs, ... }:
2023-03-07 11:49:12 +01:00
{
imports = [
inputs.pre-commit-hooks.flakeModule
];
perSystem = { system, ... }: {
pre-commit = {
# Add itself to `nix flake check`
check.enable = true;
2023-03-07 11:49:12 +01:00
settings = {
hooks = {
nixpkgs-fmt = {
enable = true;
};
2023-03-07 11:49:12 +01:00
shellcheck = {
enable = true;
};
};
2023-03-07 11:49:12 +01:00
};
};
};
}