29 lines
785 B
Nix
29 lines
785 B
Nix
{ ... }: {
|
|
programs = {
|
|
ssh = {
|
|
enable = true;
|
|
compression = true;
|
|
addKeysToAgent = "yes";
|
|
serverAliveCountMax = 2;
|
|
serverAliveInterval = 10;
|
|
hashKnownHosts = true;
|
|
matchBlocks = {
|
|
"git" = {
|
|
port = 2020;
|
|
identityFile = "/home/don/.ssh/git";
|
|
};
|
|
"git.trex-halfbeak.ts.net" = { identityFile = "/home/don/.ssh/git"; };
|
|
"github.com" = { identityFile = "/home/don/.ssh/git"; };
|
|
"gitlab.com" = { identityFile = "/home/don/.ssh/git"; };
|
|
"homeassistant.home.duckland.org" = { user = "root"; };
|
|
"dreamhost" = {
|
|
user = "duck";
|
|
hostname = "wise.dreamhost.com";
|
|
};
|
|
};
|
|
extraConfig = ''
|
|
ConnectTimeout 5
|
|
'';
|
|
};
|
|
};
|
|
}
|