Improve SSH life on Linux with Keychain and Tmux agent forwarding, now

resembles Mac experience.
This commit is contained in:
Martin Larsson 2025-07-15 13:40:21 +02:00
parent ae37074ce4
commit 098fc2c41e
2 changed files with 15 additions and 3 deletions

View file

@ -34,6 +34,16 @@ in
./common/firefox.nix
];
programs = {
zsh.initContent = ''
# Just ensure SSH agent is available, don't preload keys
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock 2>/dev/null
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
'';
};
home = {
packages = with pkgs; [
pythonEnv
@ -55,11 +65,13 @@ in
sway-audio-idle-inhibit
ffmpeg
imv
keychain
];
file = utils.mk_symlinks { inherit config dotfiles; };
};
services = {
mako.enable = true;
ssh-agent.enable = true;
};
}