Launching ssh agent

This commit is contained in:
Julien Malka 2023-02-05 00:38:11 +01:00
parent 5d6d8fa960
commit 2c945916f2
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -29,6 +29,15 @@
hardware.video.hidpi.enable = true; hardware.video.hidpi.enable = true;
programs.fish.shellInit = ''
if test -z (pgrep ssh-agent)
eval (ssh-agent -c) > /dev/null
set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK
set -Ux SSH_AGENT_PID $SSH_AGENT_PID
set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK
end
'';
services.tailscale.enable = true; services.tailscale.enable = true;
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.