feat(darwin): start the ssh-agent from nix-darwin's OpenSSH when present #58

Merged
jmz merged 1 commit from feat/darwin-nix-openssh into master 2026-11-23 22:45:30 +00:00
Owner

dot_zshrc.tmpl (darwin): the agent binary and the PATH prepend were hardcoded to Homebrew openssh. Now /run/current-system/sw/bin (nix-darwin, ahead of Apple's FIDO-less /usr/bin/ssh) is preferred when it has ssh-agent, Homebrew's otherwise — checked at runtime, safe in any order with jmz/nixos-hosts (openssh from nixpkgs). Socket name homebrew-agent.sock unchanged. Renders; zsh -n OK.

🤖 Generated with Claude Code

`dot_zshrc.tmpl` (darwin): the agent binary and the PATH prepend were hardcoded to Homebrew openssh. Now `/run/current-system/sw/bin` (nix-darwin, ahead of Apple's FIDO-less `/usr/bin/ssh`) is preferred when it has `ssh-agent`, Homebrew's otherwise — checked at runtime, safe in any order with jmz/nixos-hosts (openssh from nixpkgs). Socket name `homebrew-agent.sock` unchanged. Renders; `zsh -n` OK. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(darwin): start the ssh-agent from nix-darwin's OpenSSH when present
All checks were successful
ci / gate (pull_request) Successful in 50s
3b57f52fea
zshrc: the agent binary and the PATH prepend were hardcoded to Homebrew's
openssh. Now /run/current-system/sw/bin (nix-darwin, ahead of Apple's
FIDO-less /usr/bin/ssh) is preferred when it has ssh-agent, Homebrew's
otherwise. Checked at runtime, so safe before and after the nixpkgs
openssh lands. The socket name homebrew-agent.sock stays (configs and
the running agent use it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4ELq1Q12cmKnPuwJz2x
jmz force-pushed feat/darwin-nix-openssh from 3b57f52fea
All checks were successful
ci / gate (pull_request) Successful in 50s
to 72534e8836
All checks were successful
ci / gate (pull_request) Successful in 55s
2026-11-23 22:44:32 +00:00
Compare
jmz scheduled this pull request to auto merge when all checks succeed 2026-11-23 22:44:47 +00:00
jmz scheduled this pull request to auto merge when all checks succeed 2026-11-23 22:45:08 +00:00
jmz merged commit 72534e8836 into master 2026-11-23 22:45:30 +00:00
jmz deleted branch feat/darwin-nix-openssh 2026-11-23 22:45:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/dotfiles-public!58
No description provided.