update landingpage

This commit is contained in:
Ingolf Wagner 2024-06-11 13:17:37 +02:00
parent 04e875e5f1
commit 0075f6a75d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -78,54 +78,50 @@ with lib;
default = lib.mkDefault true; default = lib.mkDefault true;
locations."/" = { locations."/" = {
root = pkgs.landingpage.override { root = pkgs.landingpage.override {
jsonConfig =
jsonConfig = [ let
{ title = "System Links"; } entry = { machine, items ? [ ] }:
{ {
text = "Syncthings"; text = machine;
items = map items = [
({ name, host ? "${name}.private", ... }: { {
label = name; label = "Syncthing";
href = "http://${host}:8384/"; href = "http://${machine}.private:8384/";
image = "https://media.giphy.com/media/JoyU4vuzwj6ZA7Ging/giphy.gif"; image = "https://media.giphy.com/media/JoyU4vuzwj6ZA7Ging/giphy.gif";
})
(lib.flatten (lib.mapAttrsToList (name: { ... }: { inherit name; })
config.services.tinc.networks."private".hostSettings));
} }
{ {
text = "robi"; label = "netdata";
items = [ href = "http://${machine}.private:19999/";
image = "https://media.giphy.com/media/BkjdN6MQCDPaw/giphy.gif";
}
] ++ items;
};
in
[
{ title = "System Links"; }
(entry { machine = "orbi"; items = [
{ {
label = "Jellyfin"; label = "Jellyfin";
href = "http://flix.ingolf-wagner.de/"; href = "http://flix.ingolf-wagner.de/";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
{ {
label = "netdata"; label = "PhotoPrism";
href = "http://robi.private:19999/"; href = "http://10.100.0.1:2342/";
image = "https://media.giphy.com/media/BkjdN6MQCDPaw/giphy.gif"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
];})
(entry { machine = "chungus"; items = [
{ {
label = "logs"; label = "Grafana";
href = "http://grafana.robi.private/explore"; href = "http://grafana.chungus.private/explore";
image = "https://raw.githubusercontent.com/cncf/landscape/master/hosted_logos/grafana-loki.svg"; image = "https://raw.githubusercontent.com/cncf/landscape/master/hosted_logos/grafana-loki.svg";
} }
{ {
label = "grafana"; label = "Jellyfin";
href = "http://grafana.robi.private/"; href = "http://chungus:8096/";
image = "https://www.vectorlogo.zone/logos/grafana/grafana-icon.svg"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
{
label = "prometheus";
href = "http://prometheus.robi.private/";
image = "https://www.vectorlogo.zone/logos/prometheusio/prometheusio-icon.svg";
}
];
}
{
text = "chungus";
items = [
{ {
label = "HomeAssistant"; label = "HomeAssistant";
href = "http://chungus.private:8123/"; href = "http://chungus.private:8123/";
@ -136,31 +132,6 @@ with lib;
href = "http://chungus.private:9666/"; href = "http://chungus.private:9666/";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
{
label = "Flix";
href = "http://chungus:8096/";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
}
{
label = "netdata";
href = "http://chungus.private:19999/";
image = "https://media.giphy.com/media/BkjdN6MQCDPaw/giphy.gif";
}
{
label = "logs";
href = "http://grafana.chungus.private/explore";
image = "https://raw.githubusercontent.com/cncf/landscape/master/hosted_logos/grafana-loki.svg";
}
{
label = "grafana";
href = "http://grafana.chungus.private/";
image = "https://www.vectorlogo.zone/logos/grafana/grafana-icon.svg";
}
{
label = "prometheus";
href = "http://prometheus.chungus.private/";
image = "https://www.vectorlogo.zone/logos/prometheusio/prometheusio-icon.svg";
}
{ {
label = "Kitchen"; label = "Kitchen";
href = "http://192.168.178.101/"; href = "http://192.168.178.101/";
@ -171,8 +142,11 @@ with lib;
href = "http://192.168.178.102/"; href = "http://192.168.178.102/";
image = "https://i.giphy.com/3o7TKsrMIW65QT7VWo.webp"; image = "https://i.giphy.com/3o7TKsrMIW65QT7VWo.webp";
} }
]; ];})
} (entry { machine = "cherry"; })
(entry { machine = "cream"; })
(entry { machine = "mobi"; })
(entry { machine = "bobi"; })
{ {
title = "Various Links"; title = "Various Links";
items = [ items = [
@ -181,29 +155,12 @@ with lib;
href = "http://192.168.178.31/"; href = "http://192.168.178.31/";
image = "https://i.giphy.com/W08brEWFt7EpA5y2jI.webp"; image = "https://i.giphy.com/W08brEWFt7EpA5y2jI.webp";
} }
{
label = "NeverSSL";
href = "https://oldslowfreshlight.neverssl.com/";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
}
{ {
label = "Hetzner Cloud"; label = "Hetzner Cloud";
href = "https://console.hetzner.cloud/projects"; href = "https://console.hetzner.cloud/projects";
image = image =
"https://media.giphy.com/media/NECZ8crkbXR0k/giphy.gif"; "https://media.giphy.com/media/NECZ8crkbXR0k/giphy.gif";
} }
{
label = "Pass the Popcorn";
href = "https://passthepopcorn.me/";
image =
"https://media.giphy.com/media/NipFetnQOuKhW/giphy.gif";
}
{
label = "redacted";
href = "https://redacted.ch/";
image =
"https://media.giphy.com/media/ku5EcFe4PNGWA/giphy.gif";
}
{ {
label = "Cups"; label = "Cups";
href = "http://localhost:631/"; href = "http://localhost:631/";