nixos-laptop/checks.nix

16 lines
288 B
Nix
Raw Normal View History

2024-11-11 20:40:36 +00:00
{
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;
};
};
})