Move pubkey info to network.json

This commit is contained in:
Greg Hellings
2025-12-26 23:06:03 -06:00
parent 4db5b1b2a6
commit 925d0018e6
3 changed files with 15 additions and 120 deletions
+8 -73
View File
@@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
metadata,
pkgs, pkgs,
... ...
}: }:
@@ -66,79 +67,13 @@
}; };
ssh = { ssh = {
knownHosts = { knownHosts = builtins.mapAttrs (n: v: {
chronicles = { extraHostNames = [
extraHostNames = [ "${n}.thehellings.lan"
"chronicles.thehellings.lan" "${n}.shire-zebra.ts.net"
"chronicles.home" ];
"nas" publicKey = v.pubkey;
"nas.thehellings.lan" }) (lib.filterAttrs (_: v: v ? "pubkey") metadata.hosts);
"nas.home"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEBecZUva9OnZuXLaBun6/1ITo5f9p0YMLPD+q0egLRS";
};
dns = {
extraHostNames = [
"dns"
"dns.me.ts"
"dns.home"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKRCXdhXWHEvw84V9JC5bAGovvj12DLVphcEnsTHDjxW";
};
"genesis" = {
extraHostNames = [
"genesis.shire-zebra.ts.net"
"genesis.home"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEI9jbTPmEWQ0F2bLYmnIOLmBnag1fkKxHRjz3X8lB/k";
};
"git" = {
extraHostNames = [
"git.home"
"git.thehellings.lan"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7hesFWwlmSbWPJWUiF8fIppy5a83yXw84O0Ytz+Zyq";
};
hosea = {
extraHostNames = [
"hosea.home"
"hosea.thehellings.lan"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKLIwkTTXA56sUlUjEulXXZRvZy5H4a5ZwgKWLlpkQDz";
};
isaiah = {
extraHostNames = [
"isaiah.home"
"isaiah.thehellings.lan"
"isaiah-builder"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHleYKtfV4W1Z63Ysu9w5Rbglqlz4F92YcZoMkucoTNf";
};
jeremiah = {
extraHostNames = [
"jeremiah.home"
"jeremiah.thehellings.lan"
"jeremiah-builder"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOjQjXq9WYU2Ki27BR9WwJ4ZruS/lJXbjC1b0Q42Adi0";
};
zeke = {
extraHostNames = [
"zeke.home"
"zeke.thehellings.lan"
"zeke-builder"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOos0zQePsa+T6Z2dsKbPOvEdrBQ8a6mx3s7pN6ysCI0";
};
linode = {
extraHostNames = [
"linode.home"
"linode.thehellings.lan"
"thehellings.com"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMv9Zud3kZOl86gtmkn+uj3D4kiXWDPtyUL02VVLNR4Q";
};
};
}; };
}; };
-47
View File
@@ -1,47 +0,0 @@
{
exodus = {
arch = [ "x86_64-linux" ];
};
genesis = {
arch = [ "x86_64-linux" ];
};
hosea = {
arch = [ "x86_64-linux" ];
};
icdm-root = {
arch = [ "x86_64-linux" ];
};
isaiah = {
arch = [ "x86_64-linux" ];
};
iso = {
arch = [
"x86_64-linux"
"aarch64-linux"
];
};
jeremiah = {
arch = [ "x86_64-linux" ];
};
linode = {
arch = [ "x86_64-linux" ];
};
nixos = {
arch = [
"x86_64-linux"
"aarch64-linux"
];
};
proxmoxtemplate = {
arch = [
"x86_64-linux"
"aarch64-linux"
];
};
vm-gitlab = {
arch = [ "x86_64-linux" ];
};
zeke = {
arch = [ "x86_64-linux" ];
};
}
+7
View File
@@ -8,6 +8,7 @@
"hosts": { "hosts": {
"chronicles": { "chronicles": {
"ip": "10.42.1.4", "ip": "10.42.1.4",
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEBecZUva9OnZuXLaBun6/1ITo5f9p0YMLPD+q0egLRS",
"ts": "100.119.228.115" "ts": "100.119.228.115"
}, },
"exodus": { "exodus": {
@@ -17,12 +18,14 @@
}, },
"genesis": { "genesis": {
"ip": "10.42.1.5", "ip": "10.42.1.5",
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO/CGE2rqlL2Qr0TJkwQMsHFSDkhGWlrUlvfcvcylO1n",
"ts": "100.88.91.27", "ts": "100.88.91.27",
"system": "x86_64-linux", "system": "x86_64-linux",
"tags": ["router", "server"] "tags": ["router", "server"]
}, },
"hosea": { "hosea": {
"ip": "10.42.1.7", "ip": "10.42.1.7",
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKLIwkTTXA56sUlUjEulXXZRvZy5H4a5ZwgKWLlpkQDz",
"ts": "100.68.203.1", "ts": "100.68.203.1",
"system": "x86_64-linux", "system": "x86_64-linux",
"tags": ["server"] "tags": ["server"]
@@ -33,6 +36,7 @@
"isaiah": { "isaiah": {
"builder": true, "builder": true,
"ip": "10.42.1.6", "ip": "10.42.1.6",
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHleYKtfV4W1Z63Ysu9w5Rbglqlz4F92YcZoMkucoTNf",
"ts": "100.84.183.79", "ts": "100.84.183.79",
"system": "x86_64-linux", "system": "x86_64-linux",
"systems": ["x86_64-linux", "aarch64-linux"], "systems": ["x86_64-linux", "aarch64-linux"],
@@ -47,6 +51,7 @@
"jeremiah": { "jeremiah": {
"builder": true, "builder": true,
"ip": "10.42.1.8", "ip": "10.42.1.8",
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOjQjXq9WYU2Ki27BR9WwJ4ZruS/lJXbjC1b0Q42Adi0",
"ts": "100.102.186.39", "ts": "100.102.186.39",
"system": "x86_64-linux", "system": "x86_64-linux",
"systems": ["x86_64-linux", "aarch64-linux"], "systems": ["x86_64-linux", "aarch64-linux"],
@@ -59,6 +64,7 @@
}, },
"linode": { "linode": {
"ip": null, "ip": null,
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMv9Zud3kZOl86gtmkn+uj3D4kiXWDPtyUL02VVLNR4Q",
"ts": "100.109.86.8", "ts": "100.109.86.8",
"system": "x86_64-linux", "system": "x86_64-linux",
"tags": ["public", "server"] "tags": ["public", "server"]
@@ -88,6 +94,7 @@
"zeke": { "zeke": {
"builder": true, "builder": true,
"ip": "10.42.1.13", "ip": "10.42.1.13",
"pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOos0zQePsa+T6Z2dsKbPOvEdrBQ8a6mx3s7pN6ysCI0",
"ts": "100.90.74.19", "ts": "100.90.74.19",
"system": "x86_64-linux", "system": "x86_64-linux",
"systems": ["x86_64-linux", "aarch64-linux"], "systems": ["x86_64-linux", "aarch64-linux"],