summaryrefslogtreecommitdiff
path: root/modules/xnet/monitoring/grafana.nix
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-10-03 19:56:13 -0700
committerKleidi Bujari <mail@4kb.net>2026-10-03 20:59:26 -0700
commit0d15a4d19f7925be328c2d24214a11e5ac541c40 (patch)
treeff75c552989cec4651f941126628a3702f6c6bcf /modules/xnet/monitoring/grafana.nix
parent16918d62b34b7e4d7817837057b88acb44e4f63c (diff)
downloaddepot-0d15a4d19f7925be328c2d24214a11e5ac541c40.tar.gz
depot-0d15a4d19f7925be328c2d24214a11e5ac541c40.tar.bz2
depot-0d15a4d19f7925be328c2d24214a11e5ac541c40.zip
nixfmt formatting pass
Diffstat (limited to 'modules/xnet/monitoring/grafana.nix')
-rw-r--r--modules/xnet/monitoring/grafana.nix33
1 files changed, 21 insertions, 12 deletions
diff --git a/modules/xnet/monitoring/grafana.nix b/modules/xnet/monitoring/grafana.nix
index e95318d..a8712f0 100644
--- a/modules/xnet/monitoring/grafana.nix
+++ b/modules/xnet/monitoring/grafana.nix
@@ -1,4 +1,9 @@
-{ config, pkgs, lib, ... }:
+{
+ config,
+ pkgs,
+ lib,
+ ...
+}:
let
inherit (lib) mkOption mkIf types;
@@ -18,18 +23,22 @@ in
config = mkIf hostGrafana {
services.grafana.provision = {
enable = true;
- datasources.settings.datasources = [{
- name = "Prometheus";
- type = "prometheus";
- url = "http://localhost:9090";
- access = "proxy";
- editable = false;
- }];
+ datasources.settings.datasources = [
+ {
+ name = "Prometheus";
+ type = "prometheus";
+ url = "http://localhost:9090";
+ access = "proxy";
+ editable = false;
+ }
+ ];
- dashboards.settings.providers = [{
- name = "Fetched Dashboards";
- options.path = "/etc/grafana/dashboards";
- }];
+ dashboards.settings.providers = [
+ {
+ name = "Fetched Dashboards";
+ options.path = "/etc/grafana/dashboards";
+ }
+ ];
};
environment.etc = {