meta: avoid repetition with targetHost

main
Robert Gerus 2024-02-18 13:43:54 +01:00
parent 63aaca63b3
commit 63d770b1c1
9 changed files with 5 additions and 9 deletions

View File

@ -3,9 +3,13 @@ let
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGfIRe1nH6vwjQTjqHNnkKAdr1VYqGEeQnqInmf3A6UN ar@khas";
ar_microlith =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO6rEwERSm/Fj4KO4SxFIo0BUvi9YNyf8PSL1FteMcMt ar@microlith";
defaultDomain = "tail412c1.ts.net";
in {
hosts = builtins.mapAttrs (name: value:
builtins.fromJSON (builtins.readFile (./nixos/. + "/${name}/meta.json")))
{
targetHost = name + "." + defaultDomain;
}
// builtins.fromJSON (builtins.readFile (./nixos/. + "/${name}/meta.json")))
(builtins.readDir ./nixos);
users.ar = [ ar_khas ar_microlith ];

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKb4i+BmIb2wiT4y5uWsCOmSo1dRp6Ql36toUsRHN6pC",
"targetHost": "akamanto.tail412c1.ts.net",
"system": "aarch64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE4rFVYs5t4uBpZK9kmDQkr9ONLDE41jOCP/tMmM+SMb",
"targetHost": "amanojaku.tail412c1.ts.net",
"system": "x86_64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO6VxPqJHYKmVB5d7bd6vuRqBNKXV1fo2R/WvdSF77xa",
"targetHost": "khas.tail412c1.ts.net",
"system": "x86_64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDghNuH/3G+0BXwrBZWZXX0V3K0tfu/Q/AKokLXY5zTD",
"targetHost": "microlith.tail412c1.ts.net",
"system": "x86_64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN1X7EaPNfLhWH32IAyaZj2dhJz+QLnyGuXPCZUYRTjg",
"targetHost": "scylla.tail412c1.ts.net",
"system": "aarch64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEVuDOcKE8ANKGjd6kfFH1qLLzLwg91o0exJ0isIEw4O",
"targetHost": "stereolith.tail412c1.ts.net",
"system": "x86_64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL/Cl0F5WUxDTaQAlb+bYpQ0sCRuFQlf3MHJ4+3/KfYi",
"targetHost": "tsukumogami.tail412c1.ts.net",
"system": "aarch64-linux"
}

View File

@ -1,5 +1,4 @@
{
"publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM/7CsIWlJH2F0VQpgsGgZOQeAd7Zh98WpCvmTyXCTty",
"targetHost": "zorigami.tail412c1.ts.net",
"system": "x86_64-linux"
}