services.ssh-agent-switcher.enable
NixOS option
Whether to enable ssh-agent-switcher, a daemon that proxies SSH agent connections to forwarded agents. This allows tmux/screen sessions to access SSH agents across reconnections. This is a per-user service that automatically starts when you log in via SSH and sets SSH_AUTH_SOCK to point to a stable socket location. Note: This only activates for SSH sessions, not graphical or console logins.
type: booleanDefault
false
Example
declared in: nixos/modules/services/security/ssh-agent-switcher.nixView source on NixOS/nixpkgs →true