try fufexans git hooks setup

This commit is contained in:
2025-08-29 14:49:10 +02:00
parent 35b5f15370
commit 5de06d7b0f
4 changed files with 42 additions and 1 deletions

26
fmt-hooks.nix Normal file
View File

@@ -0,0 +1,26 @@
{inputs, ...}: {
imports = [
inputs.git-hooks.flakeModule
inputs.treefmt-nix.flakeModule
];
perSystem = {
pre-commit.settings = {
excludes = ["flake.lock"];
hooks.treefmt.enable = true;
};
treefmt.programs = {
nixfmt.enable = true;
prettier = {
enable = true;
excludes = [
".js"
".md"
".ts"
];
};
};
};
}