Public Repository

Last pushed: 11 hours ago
Short Description
Nix package manager https://nixos.org/nix
Full Description

This image contains Nix package manager installation. Usage:

FROM nixos/nix:1.11

RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
RUN nix-channel --update

RUN nix-build -A pythonFull '<nixpkgs>'

Dockerfile used to genererate this image.

Docker Pull Command
Owner
nixos

Comments (6)
pierrebeaucamp
4 months ago

Fixing the SSL issues is simple:

$ docker run --rm -it nixos/nix sh
$ apk --update upgrade
$ apk add ca-certificates
$ update-ca-certificates
lexleogryfon
5 months ago

Unfortunately this is not a NixOS image :(
It is basically Alpine linux distibution, with apk package manager and nix-env on top of it.
Misadventures: wget ssl doesn't work, no nix-rebuild, no /etc/nixos/configuration.nix , nix-env --help doesn't work, and much more.

Please rename it to something like alpine-nix to avoid confusion, and upload additional pure NixOS image.

nequissimus
6 months ago

For the curious, this is where the Dockerfile is: https://github.com/NixOS/nix/blob/master/misc/docker/Dockerfile

justin8
a year ago

Any chance of a copy of the Dockerfile you used to build this?

brandocorp
a year ago

You can run the following to drop into a container shell:

docker run --rm -it nixos/nix sh
rowhit
2 years ago

How to use this image? Could you put an example please.