fix(kde): set ssh agent variable at system level

This commit is contained in:
uku 2024-08-31 11:31:00 +02:00
parent 7fdabbd351
commit 5d39734c39
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,6 @@
enable = true;
interactiveShellInit = with pkgs; ''
set -gx SSH_AUTH_SOCK /run/user/1000/ssh-agent
if test -f ~/.ssh/id_ed25519
ssh-add -l | grep -q (ssh-keygen -lf ~/.ssh/id_ed25519) || ssh-add ~/.ssh/id_ed25519
end