aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/ssh.nix
diff options
context:
space:
mode:
authorFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-07 08:48:42 -0800
committerFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-07 08:48:42 -0800
commit42105dd9f70699043dc1c8f9e1597dc0044ff703 (patch)
tree8872ac885fe188b9fa6861d25123f46cf383710a /nix/users/fcuny/ssh.nix
parentadd ssh key for github.rbx.com (diff)
downloadinfra-42105dd9f70699043dc1c8f9e1597dc0044ff703.tar.gz
store all ssh sockets under the same path
Diffstat (limited to '')
-rw-r--r--nix/users/fcuny/ssh.nix12
1 files changed, 2 insertions, 10 deletions
diff --git a/nix/users/fcuny/ssh.nix b/nix/users/fcuny/ssh.nix
index f8c1468..5e7eb46 100644
--- a/nix/users/fcuny/ssh.nix
+++ b/nix/users/fcuny/ssh.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ config, ... }:
{
# https://github.com/nix-community/home-manager/blob/master/modules/programs/ssh.nix
programs.ssh = {
@@ -7,6 +7,7 @@
serverAliveInterval = 60;
controlMaster = "auto";
controlPersist = "30m";
+ controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p";
matchBlocks = {
"github.com" = {
@@ -25,15 +26,6 @@
preferredAuthentications = "publickey";
};
};
- "chi1-jumpcontainer-es" = {
- hostname = "127.0.0.1";
- port = 44641;
- extraOptions = {
- NoHostAuthenticationForLocalhost = "yes";
- ControlPath = "~/.ssh/sapi_controlmasters/%r@%h:%p";
- ControlPersist = "10m";
- };
- };
};
};
}