Unverified Commit 83c65007 authored by Adrian Perez's avatar Adrian Perez
Browse files

nixos/grafana: disable preinstall when `declarativePlugins` is used

Closes: #445194
parent 68fe45d5
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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;
            };
          };
        };
      };
    };