aboutsummaryrefslogtreecommitdiff
path: root/home/programs/ssh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/programs/ssh.nix')
-rw-r--r--home/programs/ssh.nix19
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";