[wezterm] Uses the system SSH-agent over the built-in one.

This commit is contained in:
2025-03-17 11:39:32 -07:00
parent 54e6a63ab7
commit 3f12e44e34
2 changed files with 15 additions and 0 deletions

View File

@@ -1,5 +1,17 @@
{ ... }: { ... }:
{ {
programs.ssh = {
enable = true;
# Automatically add keys to agent when used
# Other options are "no" and "confirm"
addKeysToAgent = "yes";
matchBlocks = {
"mcp.haven" = {
user = "drew";
};
};
};
services.ssh-agent.enable = true; services.ssh-agent.enable = true;
} }

View File

@@ -18,12 +18,15 @@
enableBashIntegration = true; enableBashIntegration = true;
extraConfig = '' extraConfig = ''
local act = wezterm.action; local act = wezterm.action;
return { return {
color_scheme = "tokyonight_night", color_scheme = "tokyonight_night",
window_background_opacity = 0.80, window_background_opacity = 0.80,
font = wezterm.font "FiraCode Nerd Font", font = wezterm.font "FiraCode Nerd Font",
font_size = 13, font_size = 13,
hide_tab_bar_if_only_one_tab = true, hide_tab_bar_if_only_one_tab = true,
-- Disable the built-in SSH agent in favor of the system one
mux_enable_ssh_agent = false,
-- Keys -- Keys
keys = { keys = {
-- paste from the clipboard -- paste from the clipboard