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