You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way I can use the build-use-sandbox option with nix-shell?
I'd like to get an interactive shell in the same super-clean environment that nix-build is started in when the option is enabled.
Currently nix-shell silently ignores --option build-use-sandbox true, and also silently ignores if build-use-sandbox = true set in /etc/nix/nix.conf.
(For people reading by: build-use-sandbox is the option which, at least for nix-build, starts the nix environment in a chroot so that e.g. all paths from /nix/store that are not used by my .nix file are inaccessible.)
The text was updated successfully, but these errors were encountered:
nh2
changed the title
build-use-sandbox with nix-shell
Can I use the sandbox with nix-shell?
Dec 7, 2016
Is there any way I can use the
build-use-sandbox
option withnix-shell
?I'd like to get an interactive shell in the same super-clean environment that
nix-build
is started in when the option is enabled.Currently
nix-shell
silently ignores--option build-use-sandbox true
, and also silently ignores ifbuild-use-sandbox = true
set in/etc/nix/nix.conf
.(For people reading by:
build-use-sandbox
is the option which, at least fornix-build
, starts the nix environment in a chroot so that e.g. all paths from/nix/store
that are not used by my .nix file are inaccessible.)The text was updated successfully, but these errors were encountered: