mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
controlpersist
This commit is contained in:
parent
e1455cbd20
commit
f6bd6847c4
3 changed files with 17 additions and 0 deletions
15
modules/home/cli/controlpersist.nix
Normal file
15
modules/home/cli/controlpersist.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
let
|
||||
controlMasterOpts = {
|
||||
ControlMaster = "auto";
|
||||
ControlPath = "~/.ssh/sockets/%r@%h-%p";
|
||||
ControlPersist = "900";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.ssh.matchBlocks = {
|
||||
"pureintent".extraOptions = controlMasterOpts;
|
||||
"sincereintent".extraOptions = controlMasterOpts;
|
||||
"zest".extraOptions = controlMasterOpts;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue