controlpersist

This commit is contained in:
Sridhar Ratnakumar 2026-03-23 20:50:31 -04:00
parent e1455cbd20
commit f6bd6847c4
3 changed files with 17 additions and 0 deletions

View file

@ -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"

View file

@ -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"

View 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;
};
}