29 lines
801 B
Nix
29 lines
801 B
Nix
{lib, ...}: let
|
|
container-addresses = import ../../hosts/hetzner-vm/data/container-addresses.nix {};
|
|
in {
|
|
programs.ssh.enable = true;
|
|
programs.ssh.matchBlocks =
|
|
lib.mkMerge
|
|
((lib.forEach ["hetzner-vm" "vault" "vault-decrypt"] (hostname: {
|
|
"${hostname}" = {
|
|
user = "root";
|
|
hostname = "${hostname}.servers.genderfucked.monster";
|
|
};
|
|
}))
|
|
++ (lib.forEach (lib.attrNames container-addresses.containers) (name: {
|
|
"container-${name}" = {
|
|
user = "root";
|
|
hostname = "${container-addresses.containers.${name}}";
|
|
proxyJump = "hetzner-vm";
|
|
};
|
|
}))
|
|
++ [
|
|
{
|
|
"blahaj" = {
|
|
user = "chaos";
|
|
hostname = "blahaj.sapphicco.de";
|
|
};
|
|
}
|
|
]);
|
|
}
|