initial(ish) commit

This commit is contained in:
Philipp Hochkamp 2022-03-01 23:53:11 +01:00
commit b744693f0e
No known key found for this signature in database
GPG key ID: 3676AB4CB36E5641
88 changed files with 4925 additions and 0 deletions

31
data/monitoring.toml Normal file
View file

@ -0,0 +1,31 @@
[master]
hostname = "ds9"
ip = "10.0.0.2"
[hostOverrides]
wormhole = "10.0.0.1"
picard = "ragon.xyz"
[exporters.nginx]
hosts = [
"ds9",
"wormhole"
]
[exporters.node]
hosts = [ "ds9", "wormhole" ]
[exporters.smartctl]
hosts = [ "ds9" ]
[exporters.dnsmasq]
hosts = [ "wormhole" ]
[exporters.wireguard]
hosts = [ "wormhole"]
[exporters.smokeping]
hosts = [ "wormhole"]
[promtail]
hosts = [ "wormhole", "ds9" ]

26
data/pubkeys.nix Normal file
View file

@ -0,0 +1,26 @@
let
ragon =
let
user = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEJwOH1b6xWmEr1VZh48kBIYhW11vtPFR3my8stAHlSi" # saurier
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIuwQJY0H/fdu1UmGXAut7VfcvAk2Dm78tJpkyyv2in2" # daedalus
];
server = user ++ hosts.ds9 ++ hosts.wormhole ++ hosts.picard ++ hosts.octopi;
client = user ++ hosts.enterprise ++ hosts.voyager;
hosts = {
wormhole = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINzR5dq/2UosH3nLrc9PvJi3rzX917K2wICeOUAiDnl6" ];
daedalusvm = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL9gTeFNEO+Puf8j0rxq0qyR+OgH0eSqDYBR20aACkpP" ];
ds9 = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+BBXufXAJhyUHVfhqlk8Y4zEKJbKXgJQvsdE482lpV" ];
picard = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAm3UXZaN95WBUaS9SiHLNEuI1tP1x1w07qnYxPe+vdr" ];
};
in
{
inherit user server client;
computers = user ++ (builtins.foldl' (a: b: a ++ b) [ ] (builtins.attrValues hosts)); # everything
host = hn: (hosts.${hn} ++ user);
hosts = hn: ((map (x: hosts.${x}) hn) ++ user);
};
in
{
inherit ragon;
}