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