Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use the sandbox with nix-shell? #1147

Closed
nh2 opened this issue Dec 7, 2016 · 1 comment
Closed

Can I use the sandbox with nix-shell? #1147

nh2 opened this issue Dec 7, 2016 · 1 comment

Comments

@nh2
Copy link
Contributor

nh2 commented Dec 7, 2016

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.)

@nh2 nh2 changed the title build-use-sandbox with nix-shell Can I use the sandbox with nix-shell? Dec 7, 2016
@domenkozar
Copy link
Member

Duplicates #903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants