nixos/grafana: disable preinstall when declarativePlugins is used

Closes: #445194
This commit is contained in:
Adrian Perez
2025-11-01 16:39:03 -07:00
parent 68fe45d55c
commit 83c65007f8
@@ -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;
};
};
};
};
};