pkgs: fix grafanaDashboards access in flake
The `packages` output from the flake needs flake-utils' `flattenTree` to be valid (because it doesn't support nested sets), but that only works if I use `recurseIntoAttrs`.
This commit is contained in:
parent
cc825d1e53
commit
c7c87fcdb4
|
@ -2,6 +2,6 @@
|
|||
{
|
||||
sddm-sugar-candy = pkgs.callPackage ./sddm-sugar-candy {};
|
||||
kaleidoscope-udev-rules = pkgs.callPackage ./kaleidoscope-udev-rules {};
|
||||
grafana-dashboards = pkgs.callPackage ./grafana-dashboards {};
|
||||
grafanaDashboards = pkgs.recurseIntoAttrs (pkgs.callPackage ./grafana-dashboards {});
|
||||
spot = pkgs.callPackage ./spot {};
|
||||
}
|
||||
|
|
|
@ -38,12 +38,12 @@ in {
|
|||
dashboards = [
|
||||
{
|
||||
name = "Node Exporter";
|
||||
options.path = pkgs.packages.grafana-dashboards.node-exporter;
|
||||
options.path = pkgs.packages.grafanaDashboards.node-exporter;
|
||||
disableDeletion = true;
|
||||
}
|
||||
{
|
||||
name = "NGINX";
|
||||
options.path = pkgs.packages.grafana-dashboards.nginx;
|
||||
options.path = pkgs.packages.grafanaDashboards.nginx;
|
||||
disableDeletion = true;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue