mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-06 14:20:11 +08:00
controlpersist
This commit is contained in:
parent
e1455cbd20
commit
f6bd6847c4
3 changed files with 17 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ in
|
|||
flake.inputs.self.homeModules.default
|
||||
flake.inputs.self.homeModules.darwin-only
|
||||
"${homeMod}/gui/1password.nix"
|
||||
"${homeMod}/cli/controlpersist.nix"
|
||||
"${homeMod}/claude-code"
|
||||
|
||||
"${homeMod}/work/juspay.nix"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ in
|
|||
users.users.${flake.config.me.username}.linger = true;
|
||||
home-manager.sharedModules = [
|
||||
"${homeMod}/cli/ssh-agent-forwarding.nix"
|
||||
"${homeMod}/cli/controlpersist.nix"
|
||||
"${homeMod}/claude-code"
|
||||
"${homeMod}/work/juspay.nix"
|
||||
"${homeMod}/services/vira.nix"
|
||||
|
|
|
|||
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