How to create a Grafana plugin

I’m trying to add the Business Text plugin for Grafana | Grafana Labs plugin to my Grafana config. But I don’t know how to do that. I tried declarativePlugins = with grafanaPlugins; [ marcusolsson-dynamictext-panel ]; but it seems that this plugin is not in the nixpkgs. How do add this plugin to Grafana in a Nix way? Do I need to create a plugin, or can I somehow download it to the plugins folder of Grafana? My current config:

  services.grafana = {
      enable = true;
      settings = {
        analytics.reporting_enabled = false;
        users.allow_sign_up = false;
        server = {
          http_addr = "127.0.0.1";
          http_port = 3000;
          enforce_domain = true;
          enable_gzip = true;
          domain = "${hostname}";
          root_url = "https://${hostname}/${grafanaPath}/";
          serve_from_sub_path = true;
        };
        security = {
          disable_initial_admin_creation = true;
          cookie_secure = true;
          disable_gravatar = true;
          hide_version = true;
          admin_user = "admin";
          admin_password = "\$__file{${config.sops.secrets.grafanaAdminPassword.path}}";
        };
      };

I tried with 24.11 and it seems to work (now) … :slight_smile:

services.grafana.declarativePlugins = with pkgs.grafanaPlugins; [
  marcusolsson-dynamictext-panel
];

Src: nixpkgs/pkgs/servers/monitoring/grafana/plugins/plugins.nix at d44a276324b63ff7ca4254b7ea51d5bac7eb6c64 · NixOS/nixpkgs · GitHub

KR