Skip to content

zombiezen/codespaces-nix

Repository files navigation

zombiezen's Nix image for GitHub Codespaces

This is a Dev Container base image that includes the Nix package manager, suitable for use in GitHub Codespaces. It has a Debian base to support the VSCode server process and handle standard Dev Container features.

Features

  • No-fuss container configuration
  • Multi-user Nix installation
  • direnv preinstalled
  • Automatically runs Lorri daemon
  • VSCode dependences preinstalled

Usage

Add the following .devcontainer.json file to your project:

{
  "image": "ghcr.io/zombiezen/codespaces-nix"
}

Then follow the Codespaces instructions to start up a Codespace.

Alternatives

  • The Development Containers nix Feature. Works with most distribution base images, but adds time to container builds compared to a dedicated image.
  • nix-devcontainer shares many of the same goals as this project. However, nix-devcontainer tries to be an all-in-one solution in many ways. This project aims to be a small minimal image, and rely on the user to use Nix to manage their environment as they see fit.

License

Unlicense