StackPanel

Variables Module

Documentation for the variables module

Workspace variables with plaintext, computed, and direct secret-reference support.

Overview

Manages project variables as a key-value store. Supports plaintext config, direct ref+sops://...#/KEY secret references, external secret store references (vals), and Nix-computed values.

Files

FileDescription
default.nixModule entry point
variables-options.nixVariable schema and keygroup logic
variables-backend-options.nixBackend selection (vals or chamber)

Keygroups

PrefixStorageDescription
/var/*PlaintextShared config
/secret/*Legacy placeholderTransitional secret entry
/computed/*Read-onlyGenerated by Nix modules

Usage

stackpanel.variables = {
  "/var/LOG_LEVEL" = { value = "info"; };
  "/var/DATABASE_URL" = {
    value = "ref+sops://.stack/secrets/dev/web.sops.yaml#/DATABASE_URL";
  };
};

Backends

  • vals (default): AGE/SOPS encryption with vals for external references
  • chamber: AWS SSM Parameter Store via the chamber CLI

On this page