chore: add ssh config
This commit is contained in:
@@ -4,5 +4,6 @@
|
||||
./bash.nix
|
||||
./git.nix
|
||||
./starship.nix
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
||||
20
config/ssh.nix
Normal file
20
config/ssh.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
compression = true;
|
||||
serverAliveInterval = 60;
|
||||
serverAliveCountMax = 3;
|
||||
|
||||
# SSH Multiplexing - reuses existing SSH connections for multiple sessions, reducing authentication overhead and improving speed for subsequent logins.
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlMaster = "auto";
|
||||
controlPersist = "600";
|
||||
|
||||
# Include custom configs from 1Password (See packages/common/secrets.nix)
|
||||
includes = [
|
||||
"~/.ssh/config.d/*.conf"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user