From 1e0c5ba560853a130e5d17c2db3bcd7114d6d5a8 Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Tue, 13 Sep 2022 16:40:33 +0000 Subject: [PATCH] Add UID option by backporting patch from nixpkgs This comes from nixpgks commit 81291cc793cf88bd6eff3fd8512e5eb9d037066c and will be included with nixos 22.11. --- nixos/modules/monitoring/server/grafana-service.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/monitoring/server/grafana-service.nix b/nixos/modules/monitoring/server/grafana-service.nix index 5067047e..b86efa91 100644 --- a/nixos/modules/monitoring/server/grafana-service.nix +++ b/nixos/modules/monitoring/server/grafana-service.nix @@ -109,6 +109,11 @@ let default = 1; description = "Org id. will default to orgId 1 if not specified."; }; + uid = mkOption { + type = types.nullOr types.str; + default = null; + description = "Custom UID which can be used to reference this datasource in other parts of the configuration, if not specified will be generated automatically."; + }; url = mkOption { type = types.str; description = "Url of the datasource."; -- GitLab