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"
|
||||
];
|
||||
};
|
||||
}
|
||||
6
flake.lock
generated
6
flake.lock
generated
@@ -41,11 +41,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1758346548,
|
||||
"narHash": "sha256-afXE7AJ7MY6wY1pg/Y6UPHNYPy5GtUKeBkrZZ/gC71E=",
|
||||
"lastModified": 1758589230,
|
||||
"narHash": "sha256-zMTCFGe8aVGTEr2RqUi/QzC1nOIQ0N1HRsbqB4f646k=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20",
|
||||
"rev": "d1d883129b193f0b495d75c148c2c3a7d95789a0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
Reference in New Issue
Block a user