Use ControlMaster for repohost
This commit is contained in:
parent
913f94af3c
commit
eb5ffeeec4
1 changed files with 5 additions and 0 deletions
|
@ -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" = {
|
||||||
|
|
Loading…
Reference in a new issue