aboutsummaryrefslogtreecommitdiff
path: root/modules/dashboard/default.nix
blob: c1de246a8335cd7a119f0a0009c0981166a9825f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{ lib, ... }:
let
  settings = import ../../settings.nix { inherit lib; };
  ports = settings.network.ports;
in
{
  imports = [ ../../services/bacchus-dashboard/bacchus-dashboard.service.nix ];

  services.bacchus-dashboard = {
    enable = true;
    openFirewall = true;
    port = ports.dashboard;
    title = "Bacchus Dashboard";
    embedLink = settings.grafana.dashboardEmbedLink;
    links = [
      {
        title = "Jellyfin";
        key = "j";
        url = "http://jellyfin.local";
        altUrl = "http://${settings.network.host}:${toString ports.jellyfin}";
        color = "#AA5CC3";
      }
      {
        title = "Jellyseer";
        key = "l";
        url = "http://jellyseerr.local";
        altUrl = "http://${settings.network.host}:${toString ports.jellyseerr}";
        color = "#5345e6";
      }
      {
        title = "Radarr";
        key = "r";
        url = "http://radarr.local";
        altUrl = "http://${settings.network.host}:${toString ports.radarr}";
        color = "#fcbd00";
      }
      {
        title = "Sonarr";
        key = "s";
        url = "http://sonarr.local";
        altUrl = "http://${settings.network.host}:${toString ports.sonarr}";
        color = "#4c82cf";
      }
      {
        title = "Prowlarr";
        key = "p";
        url = "http://prowlarr.local";
        altUrl = "http://${settings.network.host}:${toString ports.prowlarr}";
        color = "#ff9a7e";
      }
      {
        title = "Syncthing";
        key = "y";
        url = "http://syncthing.local";
        altUrl = "http://${settings.network.host}:${toString ports.syncthing}";
        color = "#0891d1";
      }
      {
        title = "Ntfy-sh";
        key = "n";
        url = "http://ntfy.local";
        altUrl = "http://${settings.network.host}:${toString ports.ntfy}";
        color = "#2dc9b5";
      }
      {
        title = "Grafana";
        key = "g";
        url = "http://grafana.local";
        altUrl = "http://${settings.network.host}:${toString ports.grafana}";
        color = "#f05a28";
      }
    ];
  };
}