chore: add ssh config
Some checks failed
Ansible Lint Check / check-ansible (push) Successful in 5s
Nix Format Check / check-format (push) Successful in 1m13s
Python Lint Check / check-python (push) Failing after 6s

This commit is contained in:
2025-09-24 11:55:46 +02:00
parent 60dd31fd1c
commit ee0c73f6de
3 changed files with 24 additions and 3 deletions

View File

@@ -4,5 +4,6 @@
./bash.nix
./git.nix
./starship.nix
./ssh.nix
];
}

20
config/ssh.nix Normal file
View 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
View File

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