Only include /bin/sh (not all of /bin) in the chroot
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
18de9f64ae
commit
883d310bac
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue