devcontainers-nix
Agent skill fromBagelHole/DevOps-Security-Agent-Skills
Create reproducible development environments with Dev Containers, Nix flakes, and Devbox for consistent toolchains across teams. Use when onboarding developers, standardizing build environments, or eliminating "works on my machine" problems.
How to install devcontainers-nix
install devcontainers-nix
# install the DevOps-Security-Agent-Skills pack with the skills CLI
npx skills add BagelHole/DevOps-Security-Agent-Skills# or add only this skill to Claude Code: copy the folder
devops/developer-experience/devcontainers-nix/
# into
~/.claude/skills/devcontainers-nix/ (all projects)
.claude/skills/devcontainers-nix/ (one project)
1# Dev Containers & Nix Environments23Reproducible, portable development environments that eliminate environment drift.45## When to Use This Skill67Use this skill when:8- Onboarding new developers (zero-to-productive in minutes)9- Standardizing toolchains across a team10- Eliminating "works on my machine" problems11- Setting up CI environments that match local dev12- Creating ephemeral, disposable dev environments1314## Dev Containers1516### Basic Configuration1718```json19// .devcontainer/devcontainer.json20{21 "name": "My Project",22 "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",23 "features": {24 "ghcr.io/devcontainers/features/node:1": { "version": "20" },25 "ghcr.io/devcontainers/features/python:1": { "version": "3.12" },26 "ghcr.io/devcontainers/features/docker-in-docker:2": {},27 "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}28 },29 "forwardPorts": [3000, 5432],30 "postCreateCommand": "npm install",31 "customizations": {32 "vscode": {33 "extensions": [34 "dbaeumer.vscode-eslint",35 "esbenp.prettier-vscode",36 "ms-python.python"37 ],38 "settings": {39 "editor.formatOnSave": true40 }41 }42 }43}44```4546### Docker Compose Dev Container4748```json49// .devcontainer/devcontainer.json50{51 "name": "Full Stack Dev",52 "dockerComposeFile": "docker-compose.yml",53 "service": "app",54 "workspaceFolder": "/workspace",55 "forwardPorts": [3000, 5432, 6379],56 "postCreateCommand": "npm install && npx prisma migrate dev"57}58…
Excerpt shown under the repository's MIT license.
