diff options
| author | Franck Cuny <fcuny@roblox.com> | 2026-01-28 15:07:51 -0800 |
|---|---|---|
| committer | Franck Cuny <fcuny@roblox.com> | 2026-01-28 15:07:51 -0800 |
| commit | 44501d92d07e087e4a16932e3903f69e6552b5e6 (patch) | |
| tree | c58900042b08e17ebb39118c5acc5c8c9adb349a /home/programs | |
| parent | eza: don't use --git-ignore (diff) | |
| download | infra-44501d92d07e087e4a16932e3903f69e6552b5e6.tar.gz | |
Diffstat (limited to 'home/programs')
| -rw-r--r-- | home/programs/ssh.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/home/programs/ssh.nix b/home/programs/ssh.nix index efc3085..b7a5796 100644 --- a/home/programs/ssh.nix +++ b/home/programs/ssh.nix @@ -1,9 +1,26 @@ -{ config, ... }: +{ + config, + lib, + pkgs, + ... +}: { programs.ssh = { enable = true; enableDefaultConfig = false; matchBlocks = { + "*.coder" = { + proxyCommand = "${lib.getExe pkgs.coder-mainline} --global-config \"/Users/fcuny/Library/Application Support/coderv2\" ssh --stdio %h"; + extraOptions = { + "ConnectTimeout" = "0"; + "StrictHostKeyChecking" = "no"; + "UserKnownHostsFile" = "/dev/null"; + "LogLevel" = "ERROR"; + # Disable ControlMaster for Coder to avoid "stuck" tunnels if a workspace restarts. + "ControlMaster" = "no"; + "ControlPath" = "none"; + }; + }; "*" = { controlMaster = "auto"; controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p"; |
