# nixhooks: A small, fast, drop-in replacement for git-hooks.nix

**URL:** https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099
**Category:** Links
**Created:** [September 15, 2026, 8:10pm UTC](https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099 "2026-09-15T20:10:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![poacher](https://discourse.nixos.org/user_avatar/discourse.nixos.org/poacher/32/38686_2.png) [@poacher](https://discourse.nixos.org/u/poacher)
#### Post date: [September 15, 2026, 8:10pm UTC](https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099/1 "2026-09-15T20:10:57Z")

</div>

> **[poacher.dev/nixhooks](https://tangled.org/poacher.dev/nixhooks)**
>
> A small, fast, drop-in replacement for git-hooks.nix

---

<div class="post-metadata">

### Author: ![domenkozar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/domenkozar/32/38357_2.png) [@domenkozar](https://discourse.nixos.org/u/domenkozar)
#### Post date: [September 15, 2026, 10:51pm UTC](https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099/2 "2026-09-15T22:51:59Z")

</div>

Cool! Curious to see how you benchmarked.

 ![Screenshot from 2026-09-15 17-50-01](https://discourse.nixos.org/uploads/default/original/3X/f/e/fe1b6ca94d50540eba4520f8ba5e4788b59044f2.png)

`nixhooks` seems to be fast for no hooks case, which is uninteresting because you wouldn’t use it then.

For the rest with `prek` it’s pretty much on pair. Actually slower for 40 hooks.

---

<div class="post-metadata">

### Author: ![poacher](https://discourse.nixos.org/user_avatar/discourse.nixos.org/poacher/32/38686_2.png) [@poacher](https://discourse.nixos.org/u/poacher)
#### Post date: [September 16, 2026, 12:41am UTC](https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099/3 "2026-09-16T00:41:03Z")

</div>

Hey Domen. The benchmarks I initially included in the repository were fairly rough since I didn’t expect anyone to see this project. I’ve created a more thorough and reproducible benchmark at [poacher.dev/nixhooks-benchmark at main · Tangled](https://tangled.org/poacher.dev/nixhooks-benchmark) . I’m not sure where your numbers come from, in my testing with 40 hooks enabled nixhooks is on par with the prek backend and much faster than it when parallelism is enabled.

---

<div class="post-metadata">

### Author: ![furanchuchu](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/f/59ef9b/32.png) [@furanchuchu](https://discourse.nixos.org/u/furanchuchu)
#### Post date: [September 27, 2026, 8:23pm UTC](https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099/4 "2026-09-27T20:23:18Z")

</div>

I really appreciate this not depending on flakes. Works like a charm with Nixtamal. Already switched my config to use it. Thanks!

---

<div class="post-metadata">

### Author: ![poacher](https://discourse.nixos.org/user_avatar/discourse.nixos.org/poacher/32/38686_2.png) [@poacher](https://discourse.nixos.org/u/poacher)
#### Post date: [September 27, 2026, 9:23pm UTC](https://discourse.nixos.org/t/nixhooks-a-small-fast-drop-in-replacement-for-git-hooks-nix/80099/5 "2026-09-27T21:23:52Z")

</div>

Nice! Glad to hear it.
