Skip to content
Docker image for nix [maintainer=@zimbatm]
Branch: master
Clone or download
fpletz and zimbatm Disable the sandbox via nix.conf (#23)
Nix 2.2 enables the sandbox by default on Linux platforms. For sandbox
build support the image would need to be run in privileged containers
which we should not require by default.
3
Latest commit ebc6e4b Apr 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore Add .dockerignore Dec 10, 2018
Dockerfile Disable the sandbox via nix.conf (#23) Apr 9, 2019
LICENSE Create LICENSE Sep 8, 2018
README.md README: add a "See also" section Jun 28, 2018
alpine-install.sh Update nix to 2.2.1 Apr 7, 2019
update.sh Update nix to 2.2.1 Apr 7, 2019
version.env Update nix to 2.2.1 Apr 7, 2019

README.md

Nix docker image

This improves on top of the nixos/nix image as it removes all Alpine Linux dependencies.

The image doesn't contain any channels to reduce the default image size and encourage users to fully pin their dependency set.

Usage

FROM nixorg/nix:latest
RUN nix run -f channel:nixos-18.03 hello -c hello

CircleCI

CircleCI assumes that git and openssh are available in the container to clone the repository. This is out of our control and we therefor cannot rely on nix-shell to pull in these dependencies.

Another image at nixorg/nix:circleci is published that contains these additional dependencies.

This branch is regularily rebased on top of master.

Update

The ./update.sh script is used to get the latest nix release.

TODO

  • /etc/passwd contains a lot of useless entries

See also

You can’t perform that action at this time.