System/home-manager/modules/programs/ssh-agent.nix
2025-04-04 17:18:52 -04:00

16 lines
231 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
'';
}