From eb5ffeeec42733d87f278e583e9621f04228a9aa Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 10 Mar 2023 12:56:51 +0100 Subject: [PATCH] Use ControlMaster for repohost --- home-manager/modules/ssh/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home-manager/modules/ssh/default.nix b/home-manager/modules/ssh/default.nix index 0d89874..7d9d764 100644 --- a/home-manager/modules/ssh/default.nix +++ b/home-manager/modules/ssh/default.nix @@ -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" = {