nixos-laptop/checks.nix

16 lines
275 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 {
2024-11-11 21:33:24 +00:00
src = self;
2024-11-11 20:40:36 +00:00
hooks.treefmt = {
enable = true;
package = self.packages.${system}.formatter;
};
};
})