diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-06-10 13:06:48 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-06-10 18:58:25 +0530 |
| commit | 2a73a5899124fa15c3962b9bd385ebd415a0ccf9 (patch) | |
| tree | 3b0c29a29cf9ef4c844afc90aafcd61ef8122d21 /modules/dashboard/default.nix | |
| parent | 279241632b566fd26011409672277ca02ed697d1 (diff) | |
| download | homeserver-nixos-config-2a73a5899124fa15c3962b9bd385ebd415a0ccf9.tar.gz homeserver-nixos-config-2a73a5899124fa15c3962b9bd385ebd415a0ccf9.zip | |
Add dashboard for linking services
Diffstat (limited to 'modules/dashboard/default.nix')
| -rw-r--r-- | modules/dashboard/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/dashboard/default.nix b/modules/dashboard/default.nix new file mode 100644 index 0000000..54db0d9 --- /dev/null +++ b/modules/dashboard/default.nix @@ -0,0 +1,40 @@ +{ lib, ... }: +let + settings = import ../../settings.nix { inherit lib; }; + ports = settings.network.ports; +in +{ + imports = [ ./bacchus-dashboard.service.nix ]; + + services.bacchus-dashboard = { + enable = true; + openFirewall = true; + title = "Dashboard"; + links = [ + { + title = "Jellyfin"; + key = "j"; + url = "http://${settings.network.host}:${toString ports.jellyfin}"; + color = "#AA5CC3"; + } + { + title = "Sonarr"; + key = "s"; + url = "http://${settings.network.host}:${toString ports.sonarr}"; + color = "#4c82cf"; + } + { + title = "Radarr"; + key = "r"; + url = "http://${settings.network.host}:${toString ports.radarr}"; + color = "#fcbd00"; + } + { + title = "Prowlarr"; + key = "p"; + url = "http://${settings.network.host}:${toString ports.prowlarr}"; + color = "#ff9a7e"; + } + ]; + }; +} |
