From 44501d92d07e087e4a16932e3903f69e6552b5e6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 28 Jan 2026 15:07:51 -0800 Subject: install a recent version of coder for work --- home/programs/ssh.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'home/programs/ssh.nix') 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"; -- cgit v1.2.3