diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index e26600bd0e8e..8c58b0ba70d0 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -1300,6 +1300,18 @@ in type = types.bool; }; }; + + plugins = { + preinstall_disabled = mkOption { + description = '' + When set to `true`, disables the Background Plugin Installer, which runs before Grafana starts. + This component causes issues with `declarativePlugins` and is disabled by default if those are used. + ''; + default = cfg.declarativePlugins != null; + defaultText = literalExpression "cfg.declarativePlugins != null"; + type = types.bool; + }; + }; }; }; };