nix-git/modules/ssh-client.nix

133 lines
3.2 KiB
Nix
Raw Normal View History

2023-09-11 14:05:02 +02:00
{ config, pkgs, ... }:
{
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
# SSH client configuration.
programs.ssh = {
enable = true;
userKnownHostsFile = "~/.ssh/known_hosts ${../assets/ssh/known_hosts}";
matchBlocks = {
2023-11-03 16:24:42 +01:00
"rootHP" = {
2023-10-16 19:06:53 +02:00
hostname = "192.168.178.108";
user = "root";
port = 22;
compression = false;
};
2023-09-21 13:40:08 +02:00
"yodaTab" = {
2023-12-25 11:45:38 +01:00
hostname = "192.168.178.53";
2023-09-21 13:40:08 +02:00
user = "yoda";
port = 22;
2023-10-11 11:08:29 +02:00
compression = false;
};
2023-10-29 17:50:34 +01:00
"yodaEnchilada" = {
2023-12-19 18:59:37 +01:00
hostname = "192.168.178.193";
2023-10-11 11:08:29 +02:00
user = "yoda";
port = 22;
compression = false;
2023-09-21 13:40:08 +02:00
};
2024-01-19 13:13:53 +01:00
# local IP: 192.168.178.186
2023-09-14 14:42:49 +02:00
"yodaYoga" = {
2024-01-07 16:12:26 +01:00
hostname = "yodayoga.p1st.de";
2023-09-14 14:42:49 +02:00
user = "yoda";
2023-09-15 21:31:07 +02:00
port = 2224;
compression = true;
2023-09-14 14:42:49 +02:00
};
2023-11-03 16:24:42 +01:00
"rootYoga" = {
2024-01-07 16:12:26 +01:00
hostname = "yodayoga.p1st.de";
2023-09-17 16:36:30 +02:00
user = "root";
port = 2224;
compression = true;
};
2023-11-03 16:24:42 +01:00
"unlockYoga" = {
2024-01-07 16:12:26 +01:00
hostname = "yodayoga.p1st.de";
2023-09-15 14:59:55 +02:00
user = "root";
2023-09-15 21:31:07 +02:00
port = 2225;
compression = true;
2023-09-15 14:59:55 +02:00
};
2023-09-18 12:44:37 +02:00
2023-09-11 17:46:27 +02:00
"pi3bplus" = {
hostname = "fckjpbxxim36c1gb.myfritz.net";
user = "yoda";
port = 22;
compression = true;
};
2023-09-18 12:44:37 +02:00
"rootPi3bplus" = {
hostname = "fckjpbxxim36c1gb.myfritz.net";
user = "root";
port = 22;
compression = true;
};
2023-09-11 17:46:27 +02:00
2023-11-08 11:25:30 +01:00
"cx21-bbb" = {
hostname = "195.201.139.84";
user = "root";
port = 22;
compression = true;
};
"cpx11-coturn" = {
hostname = "157.90.231.213";
user = "root";
port = 22;
compression = true;
};
2023-09-15 11:02:44 +02:00
"ejNas" = {
hostname = "cloud.ej-altdorf.de";
#hostname = "ej-altdorf.spdns.de";
user = "yoda";
port = 22;
compression = true;
};
2023-09-15 14:32:15 +02:00
"rootEjNas" = {
hostname = "cloud.ej-altdorf.de";
#hostname = "ej-altdorf.spdns.de";
user = "root";
port = 22;
compression = true;
};
2023-09-15 11:02:44 +02:00
2023-12-25 15:38:30 +01:00
# local IP: 192.168.178.196
2023-11-03 15:23:05 +01:00
"yodaHedgehog" = {
2024-01-07 16:12:26 +01:00
hostname = "yodahedgehog.p1st.de";
2023-11-03 15:23:05 +01:00
user = "yoda";
port = 2226;
compression = true;
};
2024-01-03 15:35:46 +01:00
"rootHedgehog" = {
2024-01-07 16:12:26 +01:00
hostname = "yodahedgehog.p1st.de";
2024-01-03 15:35:46 +01:00
user = "root";
port = 2226;
compression = true;
};
2023-11-03 16:24:42 +01:00
"unlockHedgehog" = {
2024-01-07 16:12:26 +01:00
hostname = "yodahedgehog.p1st.de";
2023-11-03 15:23:05 +01:00
user = "root";
port = 2227;
compression = true;
};
2023-12-08 22:49:20 +01:00
# local IP: 192.168.178.190
2023-09-26 18:51:17 +02:00
"yodaNas" = {
2024-01-07 16:12:26 +01:00
hostname = "yodanas.p1st.de";
2023-09-11 14:05:02 +02:00
user = "yoda";
port = 2222;
compression = true;
};
2023-11-03 16:24:42 +01:00
"rootNas" = {
2024-01-07 16:12:26 +01:00
hostname = "yodanas.p1st.de";
2023-09-11 14:05:02 +02:00
user = "root";
port = 2222;
compression = true;
};
2023-11-03 16:24:42 +01:00
"unlockNas" = {
2024-01-07 16:12:26 +01:00
hostname = "yodanas.p1st.de";
2023-09-26 18:51:17 +02:00
user = "root";
port = 2223;
compression = true;
};
2023-09-11 14:05:02 +02:00
};
};
};
}