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:
parent
f39b556993
commit
767e131dbb
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue