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