From 9f6b62f45b1a14fac313d038433a5917efd3d837 Mon Sep 17 00:00:00 2001 From: Badi Abdul-Wahid Date: Sun, 31 May 2020 16:19:54 -0500 Subject: [PATCH] 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`). --- images/nix/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/images/nix/default.nix b/images/nix/default.nix index c013833..f2353bb 100644 --- a/images/nix/default.nix +++ b/images/nix/default.nix @@ -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 }" "PAGER=cat"