1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Create control path when it doesn't exist

This commit is contained in:
RGBCube 2024-05-23 15:30:55 +03:00
parent f39b556993
commit 767e131dbb
No known key found for this signature in database

View file

@ -11,10 +11,17 @@
mosh mosh
])) ]))
(homeConfiguration { (let
controlPath = "~/.ssh/control";
in homeConfiguration {
home.activation.createControlPath = {
after = [ "writeBoundary" ];
data = "mkdir --parents ${controlPath}";
};
programs.ssh = enabled { programs.ssh = enabled {
controlMaster = "auto"; controlMaster = "auto";
controlPath = "~/.ssh/control/%r@%n:%p"; controlPath = "${controlPath}/%r@%n:%p";
controlPersist = "60m"; controlPersist = "60m";
serverAliveCountMax = 2; serverAliveCountMax = 2;
serverAliveInterval = 60; serverAliveInterval = 60;