Use ControlMaster for repohost

This commit is contained in:
Erwin Boskma 2023-03-10 12:56:51 +01:00
parent 913f94af3c
commit eb5ffeeec4
Signed by: erwin
SSH key fingerprint: SHA256:Vw4O4qA0i5x65Y7yyjDpWDCSMSXAhqT4X7cJ3frdnLY

View file

@ -15,6 +15,7 @@ in
programs.ssh = { programs.ssh = {
enable = true; enable = true;
hashKnownHosts = true; hashKnownHosts = true;
controlPath = "~/.ssh/master-%r@%n:%p";
matchBlocks = { matchBlocks = {
"*" = { "*" = {
identityFile = if var.workSystem then horusKey else personalKey; identityFile = if var.workSystem then horusKey else personalKey;
@ -77,6 +78,10 @@ in
"repohost.bedum.horus.nu" = { "repohost.bedum.horus.nu" = {
forwardAgent = true; forwardAgent = true;
extraOptions = {
ControlMaster = "auto";
ControlPersist = "10m";
};
}; };
"gitea.bedum.horus.nu" = { "gitea.bedum.horus.nu" = {