{ inputs, pkgs, system, ... }: { git-hooks = inputs.git-hooks.lib.${system}.run { src = builtins.path { name = "src"; path = ./.; }; hooks = { promtool = { enable = true; name = "promtool"; description = "Check Prometheus rules"; entry = "${pkgs.prometheus.cli}/bin/promtool check rules"; files = "(?x)^(modules/monitoring/rules/.*\.yaml)$"; }; trim-trailing-whitespace = { enable = true; excludes = [ ".*\.patch" ]; }; check-added-large-files.enable = true; check-case-conflicts.enable = true; check-symlinks.enable = true; deadnix.enable = true; detect-private-keys.enable = true; editorconfig-checker.enable = true; fix-byte-order-marker.enable = true; flake-checker.enable = true; nil.enable = true; nixfmt-rfc-style.enable = true; prettier.enable = true; shellcheck.enable = true; shfmt.enable = true; statix.enable = true; yamllint.enable = true; }; }; } // inputs.self.packages.${system}