nix-community / docker-nix

Docker image for nix [maintainer=@zimbatm] [status=deprecated]
https://hub.docker.com/r/nixorg/nix/
Apache License 2.0
38 stars 9 forks source link

Disable the sandbox via nix.conf #23

Closed fpletz closed 5 years ago

fpletz commented 5 years ago

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.

Before this PR:

# nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
# nix-channel --update
unpacking channels...
error: cloning builder process: Operation not permitted
error: unable to start build process
error: program '/nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-env' failed with exit code 1

After this PR:

# nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
# nix-channel --update
unpacking channels...
created 2 symlinks in user environment