Only include /bin/sh (not all of /bin) in the chroot

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-19 11:19:07 -04:00
parent 18de9f64ae
commit 883d310bac

View file

@ -54,7 +54,7 @@ in
options = {
environment.nix = mkOption {
default = pkgs.nix;
default = pkgs.nixUnstable;
merge = mergeOneOption;
description = ''
This option specifies the Nix package instance to use throughout the system.
@ -249,7 +249,7 @@ in
config = {
nix.chrootDirs = [ "/dev" "/dev/pts" "/proc" "/bin" ];
nix.chrootDirs = [ "/dev" "/dev/pts" "/proc" "/bin/sh=${config.system.build.binsh}/bin/bash" ];
environment.etc."nix/nix.conf".source = nixConf;