nixos/parsedmarc: fix Grafana provisioning

The options' structure was changed in 957e368f3d
This commit is contained in:
Vojtěch Káně 2023-01-05 12:20:12 +01:00
parent 70acfaebf2
commit d2dcc7a169

View file

@ -409,7 +409,7 @@ in
provision = {
enable = cfg.provision.grafana.datasource || cfg.provision.grafana.dashboard;
datasources =
datasources.settings.datasources =
let
esVersion = lib.getVersion config.services.elasticsearch.package;
in
@ -435,7 +435,7 @@ in
};
}
];
dashboards = lib.mkIf cfg.provision.grafana.dashboard [{
dashboards.settings.providers = lib.mkIf cfg.provision.grafana.dashboard [{
name = "parsedmarc";
options.path = "${pkgs.python3Packages.parsedmarc.dashboard}";
}];