workmac ssh config: recommended multiplexer settings

This commit is contained in:
Trolli Schmittlauch 2024-12-17 18:13:59 +01:00
parent ece12bce76
commit 7aecda084f

View file

@ -32,11 +32,21 @@ in
programs.ssh = {
enable = true;
# defaults in bottom match block "*"
# TODO: common config for desktop as well
# multiplexer, e.g. to avoid rate limiting on jumphost usage
serverAliveInterval = 60;
controlMaster = "auto";
controlPersist = "4h";
# ssh host config
matchBlocks = {
# early catchall to enforce agent socket usage. **NOT** the place for fallback defaults.
"*" = {
extraOptions.IdentityAgent = "\"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\"";
extraOptions = {
IdentityAgent = "\"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\"";
#ControlPath = "/tmp/ssh_mux_%h_%p_%r";
};
};
"hydra01" = lib.hm.dag.entryAfter [ "*" ] {