Files
nix-config/checks/pre-commit-hooks/default.nix
mjallen18 3c1a956c81 cleanup
2025-07-24 10:19:32 -05:00

19 lines
376 B
Nix

{
inputs,
pkgs,
...
}:
let
inherit (inputs) pre-commit-hooks-nix;
in
pre-commit-hooks-nix.lib.${pkgs.system}.run {
src = ../..;
hooks = {
pre-commit-hook-ensure-sops.enable = true;
treefmt = {
enable = true;
settings.fail-on-change = false;
packageOverrides.treefmt = inputs.treefmt-nix.lib.mkWrapper pkgs ../../treefmt.nix;
};
};
}