{ lib, pkgs, ... }: let smartDashboard = import ./smart-dashboard.nix { inherit lib pkgs; }; dashboardDir = pkgs.linkFarm "grafana-dashboards" [ { name = "smart.json"; path = smartDashboard; } ]; in { services.grafana.provision.dashboards.settings = { apiVersion = 1; providers = [{ name = "nix-dashboards"; type = "file"; options.path = dashboardDir; }]; }; }