From 581dbd7739bb283ebff3a3e572efe270502144cf 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..30b20d3 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 = ''