From 1c35c527a591eafc71b5919beb53ef9c2e69248f Mon Sep 17 00:00:00 2001 From: Toast Date: Tue, 4 Jul 2023 09:38:30 +0200 Subject: [PATCH] Ssh-agent: add temporary workaround --- roles/desktop/services/ssh-agent.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/desktop/services/ssh-agent.nix b/roles/desktop/services/ssh-agent.nix index 7081761..31b9f73 100644 --- a/roles/desktop/services/ssh-agent.nix +++ b/roles/desktop/services/ssh-agent.nix @@ -7,4 +7,15 @@ https://github.com/nix-community/home-manager/commit/2d9210f25ed18d5d4e11e6b886de4027c0c51a94 but since I still need to fix home-manager's envvars not applying I'll stick to the NixOS one */ + /* + TODO: fix SSH_AUTH_SOCK not being set in Plasma + Turns out the NixOS module also has issues :3 + The env is set but only in bash, not in the DE, so + keepass can't pick it up. For now I'll just set it manually + */ + home-manager.users.toast.xdg.configFile."plasma-workspace/env/ssh-agent.sh".text = '' + if [[ -z "$SSH_AUTH_SOCK" ]]; then + export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent + fi + ''; }