Identity and keys
Private keys do not live in this repo or on disk. The checked-in files are selectors, public keys, and agent config.
SSH agent
SSH is wired to the 1Password agent socket through:
The 1Password agent key set is configured by:
Installed target:
~/.ssh/config
Public keys on disk
Git uses public-key paths as identity selectors. The matching private keys stay in 1Password.
Templates:
home/private_dot_ssh/readonly_primary_public_key.pub.tmplhome/private_dot_ssh/readonly_secondary_public_key.pub.tmpl
Work vs personal switching
The work/personal split combines:
.isWorkat chezmoi init time.- git
includeIfpath rules. - separate public-key selectors.
- pass store switching helpers.
For the operational steps, see Switching work vs personal identity.
Troubleshooting
echo "$SSH_AUTH_SOCK"
ssh-add -l
git config --show-origin --get core.sshCommand
If identity did not switch, verify the repo path first. The automatic work identity path is ~/work/... on non-work machines.