Files
nixos-config/.githooks/pre-commit
2026-04-26 18:16:37 +02:00

7 lines
154 B
Bash
Executable File

#!/usr/bin/env bash
nix fmt .
git diff --exit-code || {
echo "Formatter changed files — review with 'git diff', then re-stage and commit."
exit 1
}