Skip to content

feat: migrate devcontainer to Nix flake-based Docker image#57

Merged
sonesuke merged 3 commits intomainfrom
feat/nix-container
Apr 11, 2026
Merged

feat: migrate devcontainer to Nix flake-based Docker image#57
sonesuke merged 3 commits intomainfrom
feat/nix-container

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Summary

  • Replace .devcontainer/ setup with a Nix flake (flake.nix) that builds a reproducible Docker image via dockerTools.buildLayeredImage
  • Add mise task scripts (scripts/build.sh, up.sh, setup.sh) for build/start/setup workflow
  • Support both x86_64-linux and aarch64-linux architectures with build caching via nix-store Docker volume
  • Add mise generate git-pre-commit to setup.sh to ensure the pre-commit hook works inside the container

Test plan

  • Run mise run build to verify the Docker image builds successfully
  • Run mise run up and mise run setup to verify the container starts and provisions correctly
  • Verify pre-commit hook works inside the container (mise generate git-pre-commit)
  • Verify mise run attach provides a working dev shell with all tools (node, git, gh, chromium, etc.)

🤖 Generated with Claude Code

web-flow and others added 3 commits April 11, 2026 06:18
Replace the traditional .devcontainer setup with a Nix flake that builds
a reproducible Docker image using dockerTools.buildLayeredImage. This
improves build caching via nix-store volume and supports both x86_64
and aarch64 architectures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke merged commit d9ccf30 into main Apr 11, 2026
3 checks passed
@sonesuke sonesuke deleted the feat/nix-container branch April 11, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants