System/home-manager/modules/programs/ssh-agent.nix
2025-06-14 20:15:04 -04:00

16 lines
247 B
Nix

{
config,
lib,
pkgs,
...
}: {
# Enable the agent
services.ssh-agent = {
enable = true;
};
# Setup fish init
programs.fish.shellInit = ''
set -x SSH_AUTH_SOCK $XDG_RUNTIME_DIR/ssh-agent
ssh-add >/dev/null 2>&1
'';
}