Skip to content

fix(nix): add optional Claude Code hook setup#480

Open
pandego wants to merge 1 commit intoPeonPing:mainfrom
pandego:fix/368-nix-claude-hooks
Open

fix(nix): add optional Claude Code hook setup#480
pandego wants to merge 1 commit intoPeonPing:mainfrom
pandego:fix/368-nix-claude-hooks

Conversation

@pandego
Copy link
Copy Markdown
Contributor

@pandego pandego commented Apr 20, 2026

Summary

  • add an optional programs.peon-ping.claudeCodeIntegration Home Manager flag
  • install the Claude Code hook scripts into ~/.claude/hooks/peon-ping/
  • merge the standard peon-ping hook entries into ~/.claude/settings.json and document the new option in the README

Test plan

  • grep -q 'claudeCodeIntegration = mkOption' nix/hm-module.nix
  • grep -q '".claude/hooks/peon-ping/peon.sh".source' nix/hm-module.nix
  • grep -q 'settings_path="\$HOME/.claude/settings.json"' nix/hm-module.nix
  • grep -q 'hooks.pop("beforeSubmitPrompt", None)' nix/hm-module.nix
  • attempted bats tests/nix-home-manager.bats tests/install.bats but bats is not installed in this environment

Closes #368.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

@pandego is attempting to deploy a commit to the Gary Sheng's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install nix + claude + peon-ping

1 participant