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,197 +78,154 @@ 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";
items = map
({ name, host ? "${name}.private", ... }: {
label = name;
href = "http://${host}:8384/";
image = "https://media.giphy.com/media/JoyU4vuzwj6ZA7Ging/giphy.gif";
})
(lib.flatten (lib.mapAttrsToList (name: { ... }: { inherit name; })
config.services.tinc.networks."private".hostSettings));
}
{
text = "robi";
items = [
{ {
label = "Jellyfin"; text = machine;
href = "http://flix.ingolf-wagner.de/"; items = [
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; {
} label = "Syncthing";
{ href = "http://${machine}.private:8384/";
label = "netdata"; image = "https://media.giphy.com/media/JoyU4vuzwj6ZA7Ging/giphy.gif";
href = "http://robi.private:19999/"; }
image = "https://media.giphy.com/media/BkjdN6MQCDPaw/giphy.gif"; {
} label = "netdata";
{ href = "http://${machine}.private:19999/";
label = "logs"; image = "https://media.giphy.com/media/BkjdN6MQCDPaw/giphy.gif";
href = "http://grafana.robi.private/explore"; }
image = "https://raw.githubusercontent.com/cncf/landscape/master/hosted_logos/grafana-loki.svg"; ] ++ items;
} };
{ in
label = "grafana"; [
href = "http://grafana.robi.private/"; { title = "System Links"; }
image = "https://www.vectorlogo.zone/logos/grafana/grafana-icon.svg"; (entry { machine = "orbi"; items = [
} {
{ label = "Jellyfin";
label = "prometheus"; href = "http://flix.ingolf-wagner.de/";
href = "http://prometheus.robi.private/"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
image = "https://www.vectorlogo.zone/logos/prometheusio/prometheusio-icon.svg"; }
} {
label = "PhotoPrism";
]; href = "http://10.100.0.1:2342/";
} image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
{ }
text = "chungus"; ];})
items = [ (entry { machine = "chungus"; items = [
{ {
label = "HomeAssistant"; label = "Grafana";
href = "http://chungus.private:8123/"; href = "http://grafana.chungus.private/explore";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; image = "https://raw.githubusercontent.com/cncf/landscape/master/hosted_logos/grafana-loki.svg";
} }
{ {
label = "Zigbee2Mqtt"; label = "Jellyfin";
href = "http://chungus.private:9666/"; href = "http://chungus:8096/";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
{ {
label = "Flix"; label = "HomeAssistant";
href = "http://chungus:8096/"; href = "http://chungus.private:8123/";
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
{ {
label = "netdata"; label = "Zigbee2Mqtt";
href = "http://chungus.private:19999/"; href = "http://chungus.private:9666/";
image = "https://media.giphy.com/media/BkjdN6MQCDPaw/giphy.gif"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif";
} }
{ {
label = "logs"; label = "Kitchen";
href = "http://grafana.chungus.private/explore"; href = "http://192.168.178.101/";
image = "https://raw.githubusercontent.com/cncf/landscape/master/hosted_logos/grafana-loki.svg"; image = "https://i.giphy.com/3o7TKsrMIW65QT7VWo.webp";
} }
{ {
label = "grafana"; label = "Living Room";
href = "http://grafana.chungus.private/"; href = "http://192.168.178.102/";
image = "https://www.vectorlogo.zone/logos/grafana/grafana-icon.svg"; image = "https://i.giphy.com/3o7TKsrMIW65QT7VWo.webp";
} }
{ ];})
label = "prometheus"; (entry { machine = "cherry"; })
href = "http://prometheus.chungus.private/"; (entry { machine = "cream"; })
image = "https://www.vectorlogo.zone/logos/prometheusio/prometheusio-icon.svg"; (entry { machine = "mobi"; })
} (entry { machine = "bobi"; })
{ {
label = "Kitchen"; title = "Various Links";
href = "http://192.168.178.101/"; items = [
image = "https://i.giphy.com/3o7TKsrMIW65QT7VWo.webp"; {
} label = "Terrapen";
{ href = "http://192.168.178.31/";
label = "Living Room"; image = "https://i.giphy.com/W08brEWFt7EpA5y2jI.webp";
href = "http://192.168.178.102/"; }
image = "https://i.giphy.com/3o7TKsrMIW65QT7VWo.webp"; {
} label = "Hetzner Cloud";
]; href = "https://console.hetzner.cloud/projects";
} image =
{ "https://media.giphy.com/media/NECZ8crkbXR0k/giphy.gif";
title = "Various Links"; }
items = [ {
{ label = "Cups";
label = "Terrapen"; href = "http://localhost:631/";
href = "http://192.168.178.31/"; image =
image = "https://i.giphy.com/W08brEWFt7EpA5y2jI.webp"; "https://media.giphy.com/media/7hU7x4GPurk2c/giphy.gif";
} }
{ ];
label = "NeverSSL"; }
href = "https://oldslowfreshlight.neverssl.com/"; {
image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; text = "NixOS Links";
} items = [
{ {
label = "Hetzner Cloud"; label = "NixOS Manual";
href = "https://console.hetzner.cloud/projects"; href = "https://nixos.org/nixos/manual/";
image = image =
"https://media.giphy.com/media/NECZ8crkbXR0k/giphy.gif"; "https://media.giphy.com/media/dsdVyKkSqccEzoPufX/giphy.gif";
} }
{ {
label = "Pass the Popcorn"; label = "Nixpkgs Manual";
href = "https://passthepopcorn.me/"; href = "https://nixos.org/nixpkgs/manual/";
image = image =
"https://media.giphy.com/media/NipFetnQOuKhW/giphy.gif"; "https://media.giphy.com/media/dsdVyKkSqccEzoPufX/giphy.gif";
} }
{ {
label = "redacted"; label = "NixOS Reference";
href = "https://redacted.ch/"; href =
image = "https://storage.googleapis.com/files.tazj.in/nixdoc/manual.html#sec-functions-library";
"https://media.giphy.com/media/ku5EcFe4PNGWA/giphy.gif"; image =
} "https://media.giphy.com/media/LkjlH3rVETgsg/giphy.gif";
{ }
label = "Cups"; {
href = "http://localhost:631/"; label = "Nix Packages";
image = href = "https://nixos.org/nixos/packages.html";
"https://media.giphy.com/media/7hU7x4GPurk2c/giphy.gif"; image =
} "https://media.giphy.com/media/l2YWlohvjPnsvkdEc/giphy.gif";
]; }
} {
{ label = "NixOS Language specific helpers";
text = "NixOS Links"; href =
items = [ "https://nixos.wiki/wiki/Language-specific_package_helpers";
{ image =
label = "NixOS Manual"; "https://media.giphy.com/media/LkjlH3rVETgsg/giphy.gif";
href = "https://nixos.org/nixos/manual/"; }
image = {
"https://media.giphy.com/media/dsdVyKkSqccEzoPufX/giphy.gif"; label = "NixOS Weekly";
} href = "https://weekly.nixos.org/";
{ image =
label = "Nixpkgs Manual"; "https://media.giphy.com/media/lXiRLb0xFzmreM8k8/giphy.gif";
href = "https://nixos.org/nixpkgs/manual/"; }
image = {
"https://media.giphy.com/media/dsdVyKkSqccEzoPufX/giphy.gif"; label = "NixOS Security";
} href = "https://broken.sh/";
{ image =
label = "NixOS Reference"; "https://media.giphy.com/media/BqILAHjH1Ttm0/giphy.gif";
href = }
"https://storage.googleapis.com/files.tazj.in/nixdoc/manual.html#sec-functions-library"; {
image = label = "NixOS RFCs";
"https://media.giphy.com/media/LkjlH3rVETgsg/giphy.gif"; href = "https://github.com/NixOS/rfcs/";
} image =
{ "https://media.giphy.com/media/Uq9bGjGKg08M0/giphy.gif";
label = "Nix Packages"; }
href = "https://nixos.org/nixos/packages.html"; ];
image = }
"https://media.giphy.com/media/l2YWlohvjPnsvkdEc/giphy.gif"; { urlEncode = true; }
} ];
{
label = "NixOS Language specific helpers";
href =
"https://nixos.wiki/wiki/Language-specific_package_helpers";
image =
"https://media.giphy.com/media/LkjlH3rVETgsg/giphy.gif";
}
{
label = "NixOS Weekly";
href = "https://weekly.nixos.org/";
image =
"https://media.giphy.com/media/lXiRLb0xFzmreM8k8/giphy.gif";
}
{
label = "NixOS Security";
href = "https://broken.sh/";
image =
"https://media.giphy.com/media/BqILAHjH1Ttm0/giphy.gif";
}
{
label = "NixOS RFCs";
href = "https://github.com/NixOS/rfcs/";
image =
"https://media.giphy.com/media/Uq9bGjGKg08M0/giphy.gif";
}
];
}
{ urlEncode = true; }
];
}; };
}; };