flake: move 'checks' to 'flake/'

This commit is contained in:
Bruno BELANYI 2023-03-07 10:49:12 +00:00
parent 90d1d81983
commit fc02519c4f
3 changed files with 21 additions and 15 deletions

17
flake/checks.nix Normal file
View file

@ -0,0 +1,17 @@
{ self, pre-commit-hooks, ... }:
system:
{
pre-commit = pre-commit-hooks.lib.${system}.run {
src = self;
hooks = {
nixpkgs-fmt = {
enable = true;
};
shellcheck = {
enable = true;
};
};
};
}