1
0
Fork 0
dotfiles/config/ssh.nix

75 lines
1.4 KiB
Nix
Raw Normal View History

2022-01-10 21:41:52 +00:00
{
programs.ssh = {
enable = true;
forwardAgent = false;
compression = false;
hashKnownHosts = true;
serverAliveInterval = 60;
extraConfig = ''
IgnoreUnknown UseKeychain,AddKeysToAgent
UseKeychain yes
AddKeysToAgent yes
UpdateHostKeys ask
VerifyHostKeyDNS yes
'';
matchBlocks = {
# Work
"git.app.nedeco.de" = {
port = 22;
user = "git";
identitiesOnly = true;
identityFile = "~/.ssh/nedeco_gitlab";
compression = true;
};
"nedeco-smartos-hosting" = {
host = "10.0.90.*";
port = 22;
user = "root";
identitiesOnly = true;
identityFile = "~/.ssh/nedeco";
};
# Private
"github.com" = {
port = 22;
user = "git";
identitiesOnly = true;
identityFile = "~/.ssh/GitHub";
compression = true;
};
"gitlab.com" = {
port = 22;
user = "git";
identitiesOnly = true;
identityFile = "~/.ssh/GitLab";
compression = true;
};
2022-01-11 22:13:08 +00:00
"router" = {
hostname = "10.0.0.1";
port = 22;
user = "root";
};
2022-01-10 21:41:52 +00:00
"nas" = {
2022-01-11 22:13:08 +00:00
hostname = "10.0.0.100";
2022-01-10 21:41:52 +00:00
port = 22;
user = "daniel";
identitiesOnly = true;
identityFile = "~/.ssh/freenas";
compression = true;
};
};
2022-01-11 22:13:08 +00:00
includes = [
"~/.ssh/config_work"
];
2022-01-10 21:41:52 +00:00
};
}