From 926f411a4c703cab001d64b7f8b9701b79a7dc5c Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 15 Jun 2025 15:43:45 +0530 Subject: Refactor settings management + dashboard links --- modules/dashboard/links.nix | 69 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 modules/dashboard/links.nix (limited to 'modules/dashboard/links.nix') diff --git a/modules/dashboard/links.nix b/modules/dashboard/links.nix new file mode 100644 index 0000000..9a89c2b --- /dev/null +++ b/modules/dashboard/links.nix @@ -0,0 +1,69 @@ +{ settings }: +let + ports = settings.network.ports; + host = settings.network.host; +in [ + { + title = "Jellyfin"; + key = "j"; + url = "http://jellyfin.local"; + altUrl = "http://${host}:${toString ports.jellyfin}"; + color = "#AA5CC3"; + } + { + title = "Jellyseer"; + key = "l"; + url = "http://jellyseerr.local"; + altUrl = "http://${host}:${toString ports.jellyseerr}"; + color = "#5345e6"; + } + { + title = "Radarr"; + key = "r"; + url = "http://radarr.local"; + altUrl = "http://${host}:${toString ports.radarr}"; + color = "#fcbd00"; + } + { + title = "Sonarr"; + key = "s"; + url = "http://sonarr.local"; + altUrl = "http://${host}:${toString ports.sonarr}"; + color = "#4c82cf"; + } + { + title = "Prowlarr"; + key = "p"; + url = "http://prowlarr.local"; + altUrl = "http://${host}:${toString ports.prowlarr}"; + color = "#ff9a7e"; + } + { + title = "Syncthing"; + key = "y"; + url = "http://syncthing.local"; + altUrl = "http://${host}:${toString ports.syncthing}"; + color = "#0891d1"; + } + { + title = "Ntfy-sh"; + key = "n"; + url = "http://ntfy.local"; + altUrl = "http://${host}:${toString ports.ntfy}"; + color = "#2dc9b5"; + } + { + title = "Grafana"; + key = "g"; + url = "http://grafana.local"; + altUrl = "http://${host}:${toString ports.grafana}"; + color = "#f05a28"; + } + { + title = "Send"; + key = "f"; + url = "http://send.local"; + altUrl = "http://${host}:${toString ports.send}"; + color = "#AA5CC3"; + } +] -- cgit v1.3.1