StackPanel

modules

Configuration options for stackpanel.modules

Modules Options

modules

Stackpanel modules that provide features and UI panels.

Modules are the unified way to extend stackpanel functionality:

Each module can define:

Modules can be:

PropertyValue
Typeattribute set of (submodule)
Default{ }

Example:

{
  postgres = {
    enable = true;
    meta = {
      name = "PostgreSQL";
      description = "PostgreSQL database server";
      icon = "database";
      category = "database";
    };
    source.type = "builtin";
    features = {
      services = true;
      healthchecks = true;
      packages = true;
    };
    healthcheckModule = "postgres";
  };

  my-custom-module = {
    enable = true;
    meta = {
      name = "My Custom Module";
      description = "Does something useful";
      category = "development";
    };
    source = {
      type = "flake-input";
      flakeInput = "my-module";
    };
  };
}

modules.<name>.apps

Per-app module data (app name -> module data)

PropertyValue
Typeattribute set of (submodule)
Default{ }

modules.<name>.apps.<name>.config

Module config for this app (string key-value pairs)

PropertyValue
Typeattribute set of string
Default{ }

modules.<name>.apps.<name>.enabled

Whether module is enabled for this app

PropertyValue
Typeboolean
Defaulttrue

modules.<name>.configSchema

JSON Schema string for generating configuration forms in the UI. The schema should describe the module's configurable options.

PropertyValue
Typenull or string
Defaultnull

Example:

''
  {
    "type": "object",
    "properties": {
      "port": { "type": "integer", "default": 5432 },
      "version": { "type": "string", "enum": ["15", "16"], "default": "16" }
    }
  }
''

modules.<name>.conflicts

Other modules that conflict with this module

PropertyValue
Typelist of string
Default[ ]

modules.<name>.enable

Whether to enable the ‹name› module.

PropertyValue
Typeboolean
Defaultfalse

Example:

true


modules.<name>.features

Which stackpanel features this module uses

PropertyValue
Typesubmodule
Default{ }

modules.<name>.features.appModule

Module extends per-app configuration via appModules

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.files

Module generates files via stackpanel.files

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.healthchecks

Module defines health checks

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.packages

Module adds devshell packages

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.scripts

Module provides shell scripts/commands

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.secrets

Module manages secrets/variables

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.services

Module configures background services/processes

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.features.tasks

Module defines turborepo tasks

PropertyValue
Typeboolean
Defaultfalse

modules.<name>.flakeInputs

Flake inputs required by this module. Used for auto-installation from the registry.

PropertyValue
Typelist of (submodule)
Default[ ]

modules.<name>.flakeInputs.*.followsNixpkgs

Whether to add inputs.nixpkgs.follows = "nixpkgs"

PropertyValue
Typeboolean
Defaulttrue

modules.<name>.flakeInputs.*.name

Input name in flake.nix (e.g., "my-module")

PropertyValue
Typestring
Defaultnone

modules.<name>.flakeInputs.*.url

Flake URL (e.g., "github:author/my-module")

PropertyValue
Typestring
Defaultnone

modules.<name>.healthcheckModule

Name of the doctor module that provides health checks for this module. This links to stackpanel.doctor.<name>.

PropertyValue
Typenull or string
Defaultnull

modules.<name>.meta

Module metadata for display in the UI

PropertyValue
Typesubmodule
Defaultsee below

Default:

{
  name = "‹name›";
}

modules.<name>.meta.author

Author or maintainer of the module

PropertyValue
Typenull or string
Defaultnull

modules.<name>.meta.category

Category for grouping in the UI

PropertyValue
Typestring (open category ID)
Default"unspecified"

modules.<name>.meta.description

Human-readable description of what the module does

PropertyValue
Typenull or string
Defaultnull

modules.<name>.meta.homepage

URL to module documentation or repository

PropertyValue
Typenull or string
Defaultnull

modules.<name>.meta.icon

Lucide icon name for the module (e.g., 'database', 'box', 'cloud')

PropertyValue
Typenull or string
Defaultnull

modules.<name>.meta.name

Display name of the module

PropertyValue
Typestring
Defaultnone

modules.<name>.meta.version

Module version

PropertyValue
Typenull or string
Defaultnull

modules.<name>.actions

An attribute set keyed by action ID. An action declares an executable script, display metadata, optional confirm, a JSON object argsSchema, outputMode (stream or json), and collections to refresh on success. Reference action IDs from panels; panel controls never contain shell commands.

modules.<name>.enablePath and configPath

Paths relative to stackpanel. The defaults are modules.<name>.enable and modules.<name>.settings. The agent writes these options in the evaluated project configuration. readme supplies Markdown documentation for the installed module.

Module-owned panels

No panel is required for the standard module UI. mkModule.ui.widgets.<id>.<kind> adds a Nix-authored layout. Additional panels live under stackpanel.panels, not inside the module descriptor; mkModule sets their owner.

modules.<name>.priority

Load order priority (lower = earlier)

PropertyValue
Typesigned integer
Default100

modules.<name>.requires

Other modules that must be enabled for this module to work

PropertyValue
Typelist of string
Default[ ]

modules.<name>.source

Module source configuration

PropertyValue
Typesubmodule
Default{ }

modules.<name>.source.flakeInput

Name of the flake input (for flake-input source type)

PropertyValue
Typenull or string
Defaultnull

modules.<name>.source.path

Local path to the module (for local source type)

PropertyValue
Typenull or string
Defaultnull

modules.<name>.source.ref

Git ref (branch, tag, commit) for remote modules

PropertyValue
Typenull or string
Defaultnull

modules.<name>.source.registryId

Registry identifier (for registry source type, e.g., 'stackpanel/docker')

PropertyValue
Typenull or string
Defaultnull

modules.<name>.source.type

Source type for the module

PropertyValue
Typeone of "builtin", "local", "flake-input", "registry"
Default"builtin"

modules.<name>.tags

Tags for categorizing/filtering modules

PropertyValue
Typelist of string
Default[ ]

modulesListAll

Flat list of all modules including disabled (for API consumption)

PropertyValue
Typelist of unspecified value
Default[ ]
Read Onlytrue

On this page