Skip to content
forked from NixOS/docker

Dockerfiles to package Nix in a minimal docker container

License

Notifications You must be signed in to change notification settings

fpletz/docker-nix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This image contains an installation of the Nix package manager.

Forked by @fpletz with some experimental changes. Expect rebases.

Use this build to create your own customized images as follows:

FROM ghcr.io/fpletz/nix

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

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

Available Tags

  • ghcr.io/fpletz/nix:latest: Latest tagged release
  • ghcr.io/fpletz/nix:master: Latest build from master

Limitations

By default sandboxing is turned off inside the container, even though it is enabled in new installations of nix. This can lead to differences between derivations built inside a docker container versus those built without any containerization, especially if a derivation relies on sandboxing to block sideloading of dependencies.

To enable sandboxing the container has to be started with the --privileged flag and sandbox = true set in /etc/nix/nix.conf.

About

Dockerfiles to package Nix in a minimal docker container

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Dockerfile 100.0%