1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +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
]))
(homeConfiguration {
(let
controlPath = "~/.ssh/control";
in homeConfiguration {
home.activation.createControlPath = {
after = [ "writeBoundary" ];
data = "mkdir --parents ${controlPath}";
};
programs.ssh = enabled {
controlMaster = "auto";
controlPath = "~/.ssh/control/%r@%n:%p";
controlPath = "${controlPath}/%r@%n:%p";
controlPersist = "60m";
serverAliveCountMax = 2;
serverAliveInterval = 60;