flake: move 'checks' to 'flake/'
This commit is contained in:
parent
90d1d81983
commit
fc02519c4f
3 changed files with 21 additions and 15 deletions
16
flake.nix
16
flake.nix
|
|
@ -120,21 +120,7 @@
|
|||
default = apps.diff-flake;
|
||||
};
|
||||
|
||||
checks = {
|
||||
pre-commit = pre-commit-hooks.lib.${system}.run {
|
||||
src = ./.;
|
||||
|
||||
hooks = {
|
||||
nixpkgs-fmt = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
shellcheck = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
checks = import ./flake/checks.nix inputs system;
|
||||
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue