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
- Main file:
hosts/server/nixdev/default.nix - Supporting files:
automation.nix,ci.nix,coder.nix,forgesync.nix,registry.nix,woodpecker.nix
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 thenix-configrepo.
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.devthrough the IO Coordinator reverse proxy. It is provided by the Atuin service module and enabled withservices.atuin.enableindefault.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 key | Purpose |
|---|---|
GITHUB_TOKEN | Token for the self-hosted runners |
POSTGRES/ATUIN_PASSWORD | Atuin database password |
POSTGRES/N8N_PASSWORD | n8n database password |
POSTGRES/CODER_PASSWORD | Coder database password |
POSTGRES/WOODPECKER_PASSWORD | Woodpecker database password |
POSTGRES/WINDMILL_PASSWORD | Windmill database password |
REDIS_PASSWORD | n8n Redis password |
N8N/ENCRYPTION_KEY | n8n encryption key |
N8N/RUNNER_AUTH_TOKEN | n8n task runner auth |
WOODPECKER/GRPC_SECRET | Woodpecker gRPC secret |
WOODPECKER/AGENT_SECRET | Woodpecker agent secret |
WOODPECKER/GITHUB_CLIENT / GITHUB_SECRET | GitHub forge OAuth |
WOODPECKER/CODEBERG_CLIENT / CODEBERG_SECRET | Codeberg forge OAuth |
REGISTRY/SECRET | Registry shared secret |
REGISTRY/HTPASSWD | Registry auth htpasswd |
REGISTRY/S3_ACCESS_KEY / S3_SECRET_KEY | S3 storage credentials |
FORGESYNC/SOURCE_TOKEN / TARGET_TOKEN / MIRROR_TOKEN | ForgeSync 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_TIMEOUTis 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.