2023-10-16 18:17:28 +01:00
|
|
|
{lib, ...}: let
|
2023-09-18 03:56:58 +01:00
|
|
|
inherit (lib.modules) mkMerge;
|
2023-08-01 20:53:25 +01:00
|
|
|
in {
|
2023-10-16 18:17:28 +01:00
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
matchBlocks = mkMerge [
|
|
|
|
(mkMerge (map (hostname: {
|
2022-12-20 12:28:00 +00:00
|
|
|
"${hostname}" = {
|
|
|
|
user = "root";
|
|
|
|
hostname = "${hostname}.servers.genderfucked.monster";
|
|
|
|
};
|
2023-10-16 18:17:28 +01:00
|
|
|
}) ["hetzner-arm" "hetzner-arm-decrypt" "vault" "vault-decrypt" "raspberry"]))
|
|
|
|
{
|
|
|
|
"blahaj" = {
|
|
|
|
user = "chaos";
|
|
|
|
hostname = "blahaj.sapphicco.de";
|
2023-08-01 20:53:25 +01:00
|
|
|
};
|
2023-10-16 18:17:28 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2021-12-29 12:26:15 +00:00
|
|
|
}
|