home/ssh | upstream changes

This commit is contained in:
Don Harper 2025-09-24 11:04:43 -05:00
parent 762a6f33a2
commit e0f7dddf50

View file

@ -1,28 +1,35 @@
{ ... }: { {...}: {
programs = { programs = {
ssh = { ssh = {
enable = true; enable = true;
compression = true; enableDefaultConfig = false;
addKeysToAgent = "yes";
serverAliveCountMax = 2;
serverAliveInterval = 10;
hashKnownHosts = true;
matchBlocks = { matchBlocks = {
"git" = { "git" = {
port = 2020; port = 2020;
identityFile = "/home/don/.ssh/git"; identityFile = "/home/don/.ssh/git";
}; };
"git.trex-halfbeak.ts.net" = { identityFile = "/home/don/.ssh/git"; }; "git.trex-halfbeak.ts.net" = {identityFile = "/home/don/.ssh/git";};
"github.com" = { identityFile = "/home/don/.ssh/git"; }; "github.com" = {identityFile = "/home/don/.ssh/git";};
"gitlab.com" = { identityFile = "/home/don/.ssh/git"; }; "gitlab.com" = {identityFile = "/home/don/.ssh/git";};
"homeassistant.home.duckland.org" = { user = "root"; }; "homeassistant.home.duckland.org" = {user = "root";};
"dreamhost" = { "dreamhost" = {
user = "duck"; user = "duck";
hostname = "wise.dreamhost.com"; hostname = "wise.dreamhost.com";
}; };
"*" = {user = "don";};
}; };
extraConfig = '' extraConfig = ''
ConnectTimeout 5 ConnectTimeout 5
AddKeysToAgent yes
Compression yes
ControlMaster no
ControlPath "~/.ssh/master-%r@%n:%p"
ControlPersist no
ForwardAgent no
HashKnownHosts yes
ServerAliveCountMax 2
ServerAliveInterval 10
UserKnownHostsFile "~/.ssh/known_hosts"
''; '';
}; };
}; };