Development environments are not hermetic
link2xt opened this issue · 3 comments
link2xt commented
Page src/pages/start/3.nix-develop.mdx
says
As you can see, Nix development environments are hermetic in that they're isolated from the surrounding environment (such as your environment variables and paths like /bin and /usr/bin).
But when I run
$ nix develop "github:DeterminateSystems/zero-to-nix#example" --command which mutt
it outputs "/usr/bin/mutt".
alper commented
You can add -i
and that should get rid of the mutt.
JoshMcguigan commented
This also tripped me up when working through the zero to nix tutorial. Perhaps the sentence could be re-worded to specify -i
is needed if you don't want access to env vars or paths from the host environment.