feat(keys): session-level SSH_AUTH_SOCK for GUI clients
The agent's SSH socket was only exported via the zsh integration, so a GUI client launched outside a shell (rofi launcher, autostarted apps) couldn't use gpg-agent for SSH. Add a home.sessionVariables export resolving the socket with gpgconf --list-dirs agent-ssh-socket — the same lookup the shell integration uses, so the two can't drift — which reaches GUI apps via the login shell that starts Hyprland (the path NIXOS_OZONE_WL already takes). Eval-verified: the var resolves to the gpgconf substitution; the home config still builds. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -292,8 +292,15 @@ how to override it. Items marked ✓ are shipped.
|
||||
comes from the agent's zsh integration; cache TTLs (30 min / 2 h) govern
|
||||
re-prompting. gnome-keyring stays the Secret Service (modern versions run
|
||||
no SSH agent, so no socket contention); screen lock doesn't flush the
|
||||
cache. Remaining (optional): a session-level `SSH_AUTH_SOCK` export so GUI
|
||||
clients launched outside a shell also see the agent.
|
||||
cache. ✓ **session-level `SSH_AUTH_SOCK`:** besides the zsh integration,
|
||||
a `home.sessionVariables` export now covers GUI clients launched outside a
|
||||
shell (rofi launcher, autostarted apps) that never inherit the interactive
|
||||
shell's copy — resolved with `gpgconf --list-dirs agent-ssh-socket` at
|
||||
session-init (the same lookup the shell integration uses, so the two can't
|
||||
drift), reaching GUI apps via the login shell that starts Hyprland the same
|
||||
way `NIXOS_OZONE_WL` does. Eval-verified (the var resolves to the gpgconf
|
||||
substitution; home config builds). Pending an on-machine check that a GUI
|
||||
git/ssh client picks up the agent.
|
||||
- **Sanitize & organize the repo:** a housekeeping pass for consistency
|
||||
and clarity.
|
||||
- ✓ pruned now-redundant config: the installer no longer writes
|
||||
|
||||
Reference in New Issue
Block a user