Skip to content

Commit d6f6ad0

Browse files
committed
chore(nix): migrate hooks to git-hooks.nix
Replace the lefthook configuration with git-hooks.nix using prek as the runner so hook installation and tool resolution come from the Nix dev shell instead of ad hoc shell setup. Split the flake into flake-parts modules under nix/, add treefmt-nix formatting checks, and keep the package derivation in root package.nix/default.nix so package construction is separate from flake outputs. Move hook-only checks for config schema and skill syncing into Nix-generated scripts. These checks report stale generated files instead of staging fixes automatically, and the Claude skill symlinks are synced to match .agents/skills.
1 parent 3e91226 commit d6f6ad0

17 files changed

Lines changed: 845 additions & 294 deletions

‎.claude/skills/create-pr‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.agents/skills/create-pr

‎.claude/skills/fs-fixture‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.claude/skills/pr-ai-review-workflow‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
4242
# nix
4343
.direnv
4444
!.envrc
45+
.pre-commit-config.yaml

‎default.nix‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
craneLib,
3+
inputs,
4+
pkgs,
5+
root ? ./.,
6+
}:
7+
pkgs.callPackage ./package.nix {
8+
inherit
9+
craneLib
10+
inputs
11+
root
12+
;
13+
}

‎flake.lock‎

Lines changed: 116 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)