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")