nix-config/flake/checks.nix

18 lines
248 B
Nix
Raw Normal View History

2023-03-07 11:49:12 +01:00
{ self, pre-commit-hooks, ... }:
system:
{
pre-commit = pre-commit-hooks.lib.${system}.run {
src = self;
hooks = {
nixpkgs-fmt = {
enable = true;
};
shellcheck = {
enable = true;
};
};
};
}