Overalls.

An AI-first developer platform that you own.

Guide Self-host
Design Architecture
Source GitHub · MIT Appearance

Deploy the control plane

Marshall and Lilly are NixOS modules exported by the flake. Enabling one doesn't enable the other. The host's configuration.nix chooses its roles, and secrets arrive as encrypted documents that are decrypted on the host.

Modules
nixosModules.default, or individual modules under nixosModules.services, .network, .security and .storage
Target
x86_64-linux, NixOS 26.05

1. Build and check

tools/buck2 build //:package-service-marshall //:package-service-lilly
tools/buck2 build //:check-marshall-release
tools/buck2 build //:check-lilly-release
tools/buck2 build //:check-module-configuration

Run these commands from your fork. The tools/buck2 wrapper selects the pinned Buck2 and toolchains. Release compilation has no network access, and dependency hashes are pinned. No production secrets are needed to build.

2. Enable Marshall

{
  imports = [ overalls.nixosModules.default ];
  services.marshall = {
    enable = true;
    publicHost = "example.com";
    replicaCount = 3;
    databaseConnectionBudget = 43;
    environmentFile = "/run/overalls-secrets/marshall.env";
    instances.node01 = {
      port = 4443;
      fleetPort = 5443;
      fleetBindAddress = "10.90.0.1";
      fleetLoopback = true;
      certificateFile = "/run/overalls-secrets/backend.crt";
      keyFile = "/run/overalls-secrets/backend.key";
    };
  };
}

Here overalls is your flake input for the fork. Import overalls.nixosModules.services.marshall or overalls.nixosModules.services.lilly when you want an individual service. For a single server, set replicaCount = 1 and use local PostgreSQL; that's the supported nonredundant layout (ADR-0048 ↗). With automatic updates enabled, budget at least replicaCount × (poolSize + 3) + 10 database connections.

Marshall has separate browser and fleet HTTPS listeners. Point control.internal.example at your control plane's private address, replacing 10.90.0.1 above with that address. Lilly, Audi and Porsche use https://control.internal.example:5443; browsers use the public domain. The backend certificate must cover the private name as well as the public host, and each fleet client must trust its CA. Allow port 5443 only from fleet peers through your private network's firewall. The public browser listener refuses machine APIs. See the fleet network reference ↗.

3. Secrets

services.overallsSecrets decrypts SOPS documents with the host's SSH-derived age key and publishes them under /run/overalls-secrets/NAME. Encrypt each document to the host and to your recovery users:

services.overallsSecrets = {
  enable = true;
  bundles.marshall = {
    encryptedFile = "${./secrets/marshall.enc.json}";
    outputs.environment = {
      format = "environment";
      secrets = [
        "DATABASE_URL" "MARSHALL_CLOAK_KEYS" "SECRET_KEY_BASE"
        "TOKEN_SIGNING_SECRET" "MARSHALL_SMTP_HOST" "MARSHALL_SMTP_USERNAME"
        "MARSHALL_SMTP_PASSWORD" "MARSHALL_MAIL_FROM"
      ];
    };
  };
};
services.marshall = {
  environmentFile = "${config.services.overallsSecrets.bundles.marshall.directory}/environment";
  secretUnits = [ config.services.overallsSecrets.bundles.marshall.unit ];
};
tools/buck2 build //:package-security-user-recipients
tools/buck2 run //:secrets -- check

4. Database and email

VariableMeaning
DATABASE_URLPostgreSQL, reached over verified TLS, shared by every Marshall
SECRET_KEY_BASE, TOKEN_SIGNING_SECRETShared signing secrets
MARSHALL_CLOAK_KEYSEncryption keyring. Keep old keys as long as data encrypted with them still exists.
MARSHALL_SMTP_HOST · _USERNAME · _PASSWORDYour relay. Plaintext SMTP isn't supported.
MARSHALL_SMTP_TLSimplicit (the default, port 465) or starttls (port 587)
MARSHALL_SMTP_PORT · MARSHALL_SMTP_CA_CERTFILEOptional port override and private-CA bundle path; otherwise use the TLS mode's default port and bundled public roots
MARSHALL_MAIL_FROMA verified sender, such as noreply@your-domain.example
PHX_HOSTThe public host name used in sign-in links

Every name in a secret output's secrets list is required. If your relay needs STARTTLS, another port or a private CA, add the corresponding variables to both the encrypted document and the environment output above.

Marshall won't start if its SMTP configuration is missing or invalid. Send a test to a mailbox you control before you open the deployment to other people.

5. TLS and certificates

services.marshallProxy runs HAProxy in front of Marshall and verifies each backend's certificate and host name. The ACME integration issues and renews the public certificate:

services.marshallProxy.acme = {
  enable = true;
  email = "operator@example.com";
};
# Set only after accepting the selected CA's terms.
security.acme.acceptTerms = true;

HTTP-01 needs public DNS pointing at the frontend and port 80 reachable. Use challengeType = "dns-01" with Route 53 when port 80 can't be reachable. If several frontends share one host name, each lists the others as http01.peers.

6. Migrate, then switch

Serving instances never run migrations when they start. Instead, host enrollment and every automatic update run Marshall's migrations from the candidate release, under a PostgreSQL advisory lock, before the running services are stopped. Migrations must work with every release still serving, and a successful schema change is never rolled back automatically. Incompatible changes need a coordinated upgrade.

Full reference: docs/operations/nixos.md

Full reference: docs/operations/production-email.md