refactored system

This commit is contained in:
Till 2026-01-22 00:13:33 +01:00
parent 6a62e2f23f
commit 386d889455
55 changed files with 336 additions and 580 deletions

View file

@ -1,4 +1,13 @@
{ config, ... }:
{ config, osConfig, ... }:
let
certs = {
uni = "${config.home.homeDirectory}/.ssh/tstraube@${osConfig.networking.hostname}";
personal = "${config.home.homeDirectory}/.ssh/till@${osConfig.networking.hostname}";
};
in
{
programs.ssh = {
@ -8,18 +17,48 @@
matchBlocks = {
gu = {
"hrz login.server.uni-frankfurt.de" = {
hostname = "login.server.uni-frankfurt.de";
user = "tstraube";
identityFile = "${config.home.homeDirectory}/.ssh/tstraube";
identityFile = certs.uni;
};
geocom = {
hostname = "geocom.uni-frankfurt.de";
user = "till";
identityFile = "${config.home.homeDirectory}/.ssh/tstraube";
geocom3 = {
hostname = "141.2.194.220";
user = "tstraube";
identityFile = certs.uni;
};
geocom2 = {
hostname = "141.2.194.235";
user = "till";
identityFile = certs.uni;
};
"gitlab gitlab.rz.uni-frankfurt.de" = {
hostname = "gitlab.rz.uni-frankfurt.de";
user = "tstraube";
identityFile = certs.uni;
};
"arielle arielle.ktiu.net" = {
hostname = "arielle.ktiu.net";
user = "till";
identityFile = certs.personal;
};
"homer fernseher" = {
hostname = "homer";
user = "till";
identityFile = certs.personal;
};
# "mila" = {
# hostname = "mila";
# user = "till";
# identityFile = certs.personal;
# };
};
};
}