Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Server Dashboard — Cluster-Wide Service Dashboard

Purpose

The dashboard module integrates with Dashy and collects dashboard sections from all servers in the cluster to display on the IO Coordinator (server.ioPrimaryHost). This allows each server to define its own dashboard items, which are then automatically collected and displayed on a single unified dashboard.

Entry Point

  • Main file: modules/nixos/server/dashboard.nix

Options

server.dashboard.displayData

TypeJSON value
Default{ }

Display data for the section in the dashboard.


server.dashboard.icon

Typenull or string
Defaultnull

Icon for the section in the dashboard.


server.dashboard.items

Typeattribute set of (submodule)

Additional configuration for items managed by the IO Hosts dashy instance. This will be merged with the automatically generated configuration that is nested in a section with the name of the machine.


server.dashboard.items.<name>.icon

Typestring

Icon for the item.


server.dashboard.items.<name>.title

Typestring

Title of the item.


server.dashboard.items.<name>.url

Typestring

URL for the item.


server.dashboard.name

Typestring
Defaultlet withoutPrefix = removePrefix "nix" config.host.name; nixPrefixed = builtins.stringLength withoutPrefix < builtins.stringLength config.host.name; in if nixPrefixed then "Nix${lib.mine.strings.capitalise withoutPrefix}" else lib.capitalize config.host.name;

Name of the section in the dashboard.


Architecture / Services / Scope

  • This module uses getAllAttrsFunc to gather server.dashboard configurations from all servers in the cluster.
  • The aggregated configuration is only applied to the IO Coordinator (server.ioPrimaryHost), which runs the primary Dashy instance.

Operational Notes / Assumptions

  • Each server defines its own server.dashboard section (name, icon, and items) in its host configuration; the items are aggregated cluster-wide.

References