flake: move 'checks' to 'flake/'
This commit is contained in:
parent
90d1d81983
commit
fc02519c4f
3 changed files with 21 additions and 15 deletions
17
flake/checks.nix
Normal file
17
flake/checks.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue