Split flake into multiple files

This commit is contained in:
Pim Kunis 2024-11-11 21:40:36 +01:00
parent 47c2a10ee7
commit d70a737bc2
9 changed files with 159 additions and 108 deletions

15
checks.nix Normal file
View 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;
};
};
})