images/nix: initialize env for bash

Prior the shell was not sourcing `/etc/profile.d/nix.sh` because,
although ENV is set, it will only be used if bash is invoked in
posix mode (either as `sh` or with `--posix`).
This commit is contained in:
Badi Abdul-Wahid 2020-05-31 16:19:54 -05:00 committed by zimbatm
parent 53440b208e
commit 9f6b62f45b
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -48,6 +48,7 @@ let
Cmd = [ "/bin/bash" ];
Env = [
"ENV=/etc/profile.d/nix.sh"
"BASH_ENV=/etc/profile.d/nix.sh"
"NIX_BUILD_SHELL=/bin/bash"
"NIX_PATH=nixpkgs=${toString <nixpkgs>}"
"PAGER=cat"