home/desktop: refactor ssh config to use the new ssh.nix module

This commit is contained in:
Trolli Schmittlauch 2026-03-18 18:55:30 +01:00
parent 03291fdd05
commit 21606b8db9

View file

@ -75,25 +75,10 @@
programs.ssh = { programs.ssh = {
enable = true; enable = true;
enableDefaultConfig = false; # deprecated
package = pkgs.openssh;
# TODO: common config for desktop as well # TODO: common config for desktop as well
# ssh host config # ssh host config
matchBlocks = { matchBlocks = {
# default, gets placed last by home-manager
"*" = {
serverAliveInterval = 10;
serverAliveCountMax = 2; # 2 strikes and you're out
forwardAgent = false;
addKeysToAgent = "no";
compression = false;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
} }
// (import "${inputs.mysecrets}/ssh_hosts.nix").privateHosts; // (import "${inputs.mysecrets}/ssh_hosts.nix").privateHosts;
}; };