2023-05-19 11:42:43 +02:00
|
|
|
{ ... }:
|
2023-04-06 22:31:45 +02:00
|
|
|
let
|
2023-11-16 15:53:15 +01:00
|
|
|
git = "~/.ssh/git";
|
2023-04-06 22:31:45 +02:00
|
|
|
in
|
2023-01-06 10:37:50 +01:00
|
|
|
{
|
2024-04-01 14:23:43 +02:00
|
|
|
programs.ssh = {
|
2023-01-06 10:37:50 +01:00
|
|
|
enable = true;
|
2023-07-30 19:41:51 +02:00
|
|
|
compression = true;
|
2023-11-20 22:47:07 +01:00
|
|
|
controlMaster = "auto";
|
|
|
|
controlPersist = "10m";
|
|
|
|
extraConfig = ''
|
|
|
|
CanonicalizeHostname yes
|
2024-04-01 14:23:43 +02:00
|
|
|
CanonicalDomains agdsn.network vpn.rfive.de
|
2023-11-20 22:47:07 +01:00
|
|
|
PKCS11Provider /run/current-system/sw/lib/libtpm2_pkcs11.so
|
|
|
|
IdentityFile ~/.ssh/id_ed25519
|
|
|
|
VisualHostKey = yes
|
|
|
|
'';
|
2023-01-06 10:37:50 +01:00
|
|
|
matchBlocks = {
|
2023-11-20 22:47:07 +01:00
|
|
|
# personal use
|
2023-11-20 23:55:55 +01:00
|
|
|
"git@github.com" = {
|
|
|
|
match = "Host github.com User git";
|
2023-04-06 22:31:45 +02:00
|
|
|
identityFile = git;
|
2023-01-06 10:37:50 +01:00
|
|
|
};
|
2024-04-10 00:34:03 +02:00
|
|
|
"git@git.sr.ht" = {
|
|
|
|
match = "Host git.sr.ht User git";
|
|
|
|
identityFile = git;
|
|
|
|
};
|
2023-11-20 22:47:07 +01:00
|
|
|
# iFSR
|
|
|
|
"fsr" = {
|
2023-02-03 11:43:09 +01:00
|
|
|
hostname = "ifsr.de";
|
|
|
|
user = "rouven.seifert";
|
|
|
|
};
|
2023-11-20 23:55:55 +01:00
|
|
|
"quitte" = {
|
|
|
|
hostname = "quitte.ifsr.de";
|
|
|
|
user = "root";
|
2023-12-19 22:42:38 +01:00
|
|
|
extraOptions = {
|
|
|
|
RequestTTY = "yes";
|
|
|
|
RemoteCommand = "zsh -i";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"quitte-notty" = {
|
|
|
|
hostname = "quitte.ifsr.de";
|
|
|
|
user = "root";
|
2023-11-20 23:55:55 +01:00
|
|
|
};
|
2024-01-27 23:03:53 +01:00
|
|
|
"tomate" = {
|
|
|
|
hostname = "tomate.ifsr.de";
|
2023-11-20 23:55:55 +01:00
|
|
|
user = "root";
|
2024-01-27 23:03:53 +01:00
|
|
|
extraOptions = {
|
|
|
|
RequestTTY = "yes";
|
|
|
|
RemoteCommand = "zsh -i";
|
|
|
|
};
|
2023-11-20 23:55:55 +01:00
|
|
|
};
|
2024-01-27 23:03:53 +01:00
|
|
|
"tomate-notty" = {
|
2023-11-20 23:55:55 +01:00
|
|
|
hostname = "tomate.ifsr.de";
|
|
|
|
user = "root";
|
|
|
|
};
|
2023-02-02 12:31:38 +01:00
|
|
|
"git@ifsr.de" = {
|
2023-02-17 21:35:12 +01:00
|
|
|
match = "Host ifsr.de User git";
|
2023-04-06 22:31:45 +02:00
|
|
|
identityFile = git;
|
2023-02-02 12:31:38 +01:00
|
|
|
};
|
2023-11-20 22:47:07 +01:00
|
|
|
|
|
|
|
# AG DSN
|
|
|
|
"dijkstra" = {
|
|
|
|
hostname = "login.agdsn.tu-dresden.de";
|
|
|
|
user = "r5";
|
2023-12-17 17:22:51 +01:00
|
|
|
extraOptions = {
|
|
|
|
VerifyHostKeyDNS = "yes";
|
|
|
|
};
|
2023-11-20 22:47:07 +01:00
|
|
|
};
|
|
|
|
"*.agdsn.network" = {
|
|
|
|
user = "r5";
|
|
|
|
extraOptions = {
|
|
|
|
ProxyJump = "dijkstra";
|
2023-12-17 17:22:51 +01:00
|
|
|
VerifyHostKeyDNS = "yes";
|
2023-11-20 22:47:07 +01:00
|
|
|
};
|
|
|
|
};
|
2024-04-01 14:23:43 +02:00
|
|
|
"*.vpn.rfive.de" = {
|
|
|
|
user = "root";
|
|
|
|
};
|
2023-10-26 12:12:45 +02:00
|
|
|
"git@git.agdsn.de" = {
|
|
|
|
match = "Host git.agdsn.de User git";
|
|
|
|
identityFile = git;
|
|
|
|
};
|
2023-01-06 10:37:50 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|