22 lines
497 B
Nix
22 lines
497 B
Nix
|
{lib, ...}: let
|
||
|
inherit (lib.modules) mkMerge;
|
||
|
in {
|
||
|
programs.ssh = {
|
||
|
enable = true;
|
||
|
matchBlocks = mkMerge [
|
||
|
(mkMerge (map (hostname: {
|
||
|
"${hostname}" = {
|
||
|
user = "root";
|
||
|
hostname = "${hostname}.servers.genderfucked.monster";
|
||
|
};
|
||
|
}) ["hetzner-arm" "hetzner-arm-decrypt" "vault" "vault-decrypt" "raspberry"]))
|
||
|
{
|
||
|
"blahaj" = {
|
||
|
user = "chaos";
|
||
|
hostname = "blahaj.sapphicco.de";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|