Files
dotfiles/config/ssh.nix
Menno van Leeuwen 2947ea8060
All checks were successful
Ansible Lint Check / check-ansible (push) Successful in 7s
Nix Format Check / check-format (push) Successful in 43s
Python Lint Check / check-python (push) Successful in 7s
Upgrade to Nix 25.11 and migrate configs
Update flake inputs and flake.lock to Nix/nixpkgs and home-manager
release 25.11; bump home.stateVersion and setup script NIXOS_RELEASE.

Migrate git config to new Home Manager layout (programs.git.settings,
aliases under settings.alias), adjust delta config path, and reorganize
SSH into matchBlocks with enableDefaultConfig=false to avoid global
leaks. Simplify snapd session variable handling to avoid recursion.

Misc: tweak Dashy title, replace du-dust->dust and plex-media-player ->
plex-desktop, remove unused hostname arg, and add GitHub Copilot
instructions document.
2025-12-11 16:28:22 +01:00

27 lines
643 B
Nix

{ ... }:
{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
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"
];
};
}