mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
81 lines
1.7 KiB
Nix
81 lines
1.7 KiB
Nix
{ ... }:
|
|
let
|
|
git = "~/.ssh/git";
|
|
in
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
compression = true;
|
|
controlMaster = "auto";
|
|
controlPersist = "10m";
|
|
extraConfig = ''
|
|
CanonicalizeHostname yes
|
|
CanonicalDomains agdsn.network vpn.rfive.de
|
|
PKCS11Provider /run/current-system/sw/lib/libtpm2_pkcs11.so
|
|
IdentityFile ~/.ssh/id_ed25519
|
|
VisualHostKey = yes
|
|
'';
|
|
matchBlocks = {
|
|
# Personal
|
|
"git@github.com" = {
|
|
match = "Host github.com User git";
|
|
identityFile = git;
|
|
};
|
|
"git@git.sr.ht" = {
|
|
match = "Host git.sr.ht User git";
|
|
identityFile = git;
|
|
};
|
|
"*.vpn.rfive.de" = {
|
|
user = "root";
|
|
};
|
|
|
|
# TU Dresden
|
|
"tud" = {
|
|
hostname = "login.zih.tu-dresden.de";
|
|
user = "rose159e";
|
|
};
|
|
|
|
# iFSR
|
|
"fsr" = {
|
|
hostname = "ifsr.de";
|
|
user = "rouven.seifert";
|
|
};
|
|
"quitte" = {
|
|
hostname = "quitte.ifsr.de";
|
|
user = "root";
|
|
};
|
|
"tomate" = {
|
|
hostname = "tomate.ifsr.de";
|
|
user = "root";
|
|
extraOptions = {
|
|
ProxyJump = "tud";
|
|
};
|
|
};
|
|
"git@ifsr.de" = {
|
|
match = "Host ifsr.de User git";
|
|
identityFile = git;
|
|
};
|
|
|
|
# AG DSN
|
|
"dijkstra" = {
|
|
hostname = "login.agdsn.tu-dresden.de";
|
|
user = "r5";
|
|
extraOptions = {
|
|
VerifyHostKeyDNS = "yes";
|
|
};
|
|
};
|
|
"*.agdsn.network" = {
|
|
user = "r5";
|
|
extraOptions = {
|
|
ProxyJump = "dijkstra";
|
|
VerifyHostKeyDNS = "yes";
|
|
};
|
|
};
|
|
"git@git.agdsn.de" = {
|
|
match = "Host git.agdsn.de User git";
|
|
identityFile = git;
|
|
};
|
|
};
|
|
};
|
|
}
|