Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

NixDev — Development & CI

Purpose

nixdev is the development and CI host. It runs the self-hosted development services: continuous integration, Coder workspace platform, workflow automation, a Docker registry, a ForgeSync mirror job, and the Atuin shell history sync server.

Entry Point

Architecture / Services / Scope

CI / Automation

  • Woodpecker CI: Self-hosted CI server + local Docker-backed agent, supporting GitHub and Codeberg forges. Served on its own vhost with a separate gRPC agent endpoint. Registration is closed; accounts are provisioned manually and enumerated in WOODPECKER_ADMIN.
  • GitHub Actions runners: A pool of 10 self-hosted nixos-runner-* runners for the nix-config repo.

Workspaces

  • Coder: Self-hosted development workspaces, backed by the Docker daemon. Coder users are granted Docker access.

Shell History Sync

  • Atuin: Shell history sync server exposed at atuin.racci.dev through the IO Coordinator reverse proxy. It is provided by the Atuin service module and enabled with services.atuin.enable in default.nix. It stores history in PostgreSQL on the Database Coordinator. Open registration is enabled so clients can create an account; disable it once the required accounts exist.

Workflow Automation

  • n8n: Workflow automation with task runners, backed by PostgreSQL and Redis on the Database Coordinator.

Registry & Mirroring

  • Docker Registry: Self-hosted OCI registry storing images on the Storage Coordinator, with htpasswd auth.
  • ForgeSync: Mirrors repositories between Codeberg and GitHub on a daily schedule.

Secrets

Declared secrets

Secret keyPurpose
GITHUB_TOKENToken for the self-hosted runners
POSTGRES/ATUIN_PASSWORDAtuin database password
POSTGRES/N8N_PASSWORDn8n database password
POSTGRES/CODER_PASSWORDCoder database password
POSTGRES/WOODPECKER_PASSWORDWoodpecker database password
POSTGRES/WINDMILL_PASSWORDWindmill database password
REDIS_PASSWORDn8n Redis password
N8N/ENCRYPTION_KEYn8n encryption key
N8N/RUNNER_AUTH_TOKENn8n task runner auth
WOODPECKER/GRPC_SECRETWoodpecker gRPC secret
WOODPECKER/AGENT_SECRETWoodpecker agent secret
WOODPECKER/GITHUB_CLIENT / GITHUB_SECRETGitHub forge OAuth
WOODPECKER/CODEBERG_CLIENT / CODEBERG_SECRETCodeberg forge OAuth
REGISTRY/SECRETRegistry shared secret
REGISTRY/HTPASSWDRegistry auth htpasswd
REGISTRY/S3_ACCESS_KEY / S3_SECRET_KEYS3 storage credentials
FORGESYNC/SOURCE_TOKEN / TARGET_TOKEN / MIRROR_TOKENForgeSync tokens

Operational Notes / Assumptions

  • Runs Docker with auto-pruning for workspaces and CI workloads.
  • Woodpecker fetches pipeline configuration from Codeberg over its API, which costs roughly 1-2s per request.
  • WOODPECKER_FORGE_TIMEOUT is raised to 60s: the default 5s budget covers the whole .woodpecker/ listing plus every config file in it, which takes ~8s from this host.
  • Woodpecker, n8n, Coder, the registry, CI, and Atuin are exposed through the IO Coordinator reverse proxy.
  • Databases are provided by the Database Coordinator; n8n, Woodpecker, and Atuin depend on the database availability target.

References