From 84828e58bcbd7cd3e12d2a01b4264c05201def69 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 9 Oct 2026 16:53:56 +0100 Subject: [PATCH] Feature: Use Bitwarden SSH agent for GUI apps Co-Authored-By: Claude Opus 5.5 --- dotfiles/.config/environment.d/ssh-agent.conf | 1 + dotfiles/.config/hypr/UserConfigs/ENVariables.conf | 3 +++ dotfiles/.config/hypr/core/env.lua | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 dotfiles/.config/environment.d/ssh-agent.conf diff --git a/dotfiles/.config/environment.d/ssh-agent.conf b/dotfiles/.config/environment.d/ssh-agent.conf new file mode 100644 index 0000000..91a1e62 --- /dev/null +++ b/dotfiles/.config/environment.d/ssh-agent.conf @@ -0,0 +1 @@ +SSH_AUTH_SOCK=${HOME}/.bitwarden-ssh-agent.sock diff --git a/dotfiles/.config/hypr/UserConfigs/ENVariables.conf b/dotfiles/.config/hypr/UserConfigs/ENVariables.conf index a7bfe3e..6e4718c 100644 --- a/dotfiles/.config/hypr/UserConfigs/ENVariables.conf +++ b/dotfiles/.config/hypr/UserConfigs/ENVariables.conf @@ -87,3 +87,6 @@ env = GSK_RENDERER,ngl # env = HYPRLAND_NO_RT,1 # Disables realtime priority setting by Hyprland. # env = HYPRLAND_NO_SD_NOTIFY,1 # If systemd, disables the 'sd_notify' calls. # env = HYPRLAND_NO_SD_VARS,1 # Disables management of variables in systemd and dbus activation environments. + +# Bitwarden SSH agent (so GUI apps like VS Code see it, not just shells) +env = SSH_AUTH_SOCK,/home/thomas/.bitwarden-ssh-agent.sock diff --git a/dotfiles/.config/hypr/core/env.lua b/dotfiles/.config/hypr/core/env.lua index 8015e4b..673b54d 100644 --- a/dotfiles/.config/hypr/core/env.lua +++ b/dotfiles/.config/hypr/core/env.lua @@ -85,3 +85,6 @@ hl.env("GSK_RENDERER", "ngl") -- hl.env("HYPRLAND_NO_RT", "1") -- Disables realtime priority setting by Hyprland. -- hl.env("HYPRLAND_NO_SD_NOTIFY", "1") -- If systemd, disables the 'sd_notify' calls. -- hl.env("HYPRLAND_NO_SD_VARS", "1") -- Disables management of variables in systemd and dbus activation environments. + +-- Bitwarden SSH agent (so GUI apps like VS Code see it, not just shells) +hl.env("SSH_AUTH_SOCK", os.getenv("HOME") .. "/.bitwarden-ssh-agent.sock")