remote-builds: Reduce amount of SSH connections

It seems to be doing a SSH connection for each path it has to check...
wow.
This commit is contained in:
Geoffrey Frogeye 2024-05-09 23:07:51 +02:00
parent cc46352873
commit bd84dd7fd7
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -33,6 +33,9 @@ in
cat ${pkgs.writeText "root-ssh-config" (lib.strings.concatLines (builtins.map (builder: ''
Host ${builder.hostName}
Port 2278
ControlMaster auto
ControlPath ~/.ssh/master-%r@%n:%p
ControlPersist 60s
'') vivariumBuilders)) } > /root/.ssh/config
'';
};