From d1f742488815333bbad3c8728f54025d2038424b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 8 Nov 2024 01:08:11 +0100 Subject: [PATCH] nixos/grafana: fix evaluation when no settings is defined Before it would fail on line 11 where we check if postgres is used with an error that the undefined option settings was accessed. --- nixos/modules/services/monitoring/grafana.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index eae2658b7ffb..dbbec443bf42 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -255,6 +255,7 @@ in Grafana settings. See for available options. INI format is used. ''; + default = { }; type = types.submodule { freeformType = settingsFormatIni.type;