From 8aa4030bb4693a06d49664fba7e0e3fb86777275 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 6 Nov 2024 13:51:49 +0100 Subject: [PATCH] home: Only set SSH_AUTH_SOCK if unset --- home/config/nil/home.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/config/nil/home.nix b/home/config/nil/home.nix index 5affa13..4894d04 100644 --- a/home/config/nil/home.nix +++ b/home/config/nil/home.nix @@ -249,9 +249,12 @@ in { PROMPT_INDICATOR: { "› " } - SSH_AUTH_SOCK: $"($env.XDG_RUNTIME_DIR)/ssh-agent" TMPDIR: $"($env.XDG_RUNTIME_DIR)/tmp" } + + if SSH_AUTH_SOCK not-in $env { + $env.SSH_AUTH_SOCK = $"($env.XDG_RUNTIME_DIR)/ssh-agent" + } ''; configFile.text = ''