Split flake into multiple files
This commit is contained in:
parent
47c2a10ee7
commit
d70a737bc2
9 changed files with 159 additions and 108 deletions
15
checks.nix
Normal file
15
checks.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
self,
|
||||
flake-utils,
|
||||
git-hooks,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: {
|
||||
checks.pre-commit-check = git-hooks.lib.${system}.run {
|
||||
src = ./.; # TODO: self?
|
||||
hooks.treefmt = {
|
||||
enable = true;
|
||||
package = self.packages.${system}.formatter;
|
||||
};
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue