1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: remove leftover invalid paperless monitor, add grafana dashboard

This commit is contained in:
oddlama 2024-07-21 01:59:45 +02:00
parent 611a64fb49
commit cb4f4f251f
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 938 additions and 14 deletions

View file

@ -2,6 +2,7 @@
config,
globals,
nodes,
pkgs,
...
}: let
wardWebProxyCfg = nodes.ward-web-proxy.config;
@ -235,6 +236,19 @@ in {
secureJsonData.basicAuthPassword = "$__file{${config.age.secrets.grafana-loki-basic-auth-password.path}}";
}
];
dashboards.settings.providers = [
{
name = "default";
options.path = pkgs.stdenv.mkDerivation {
name = "grafana-dashboards";
src = ./grafana-dashboards;
installPhase = ''
mkdir -p $out/
install -D -m755 $src/*.json $out/
'';
};
}
];
};
};