use bashInteractive right after the installation

This commit is contained in:
Alexander Sosedkin 2020-05-02 15:10:08 +02:00
parent cb0905a4a0
commit b4818078f3

View file

@ -64,6 +64,10 @@ writeText "login-inner" ''
. "${config.user.home}/.nix-profile/etc/profile.d/nix-on-droid-session-init.sh"
set -u
${lib.optionalString config.build.initialBuild ''
exec /usr/bin/env bash # otherwise it'll be a limited bash that came with Nix
''}
if [ "$#" -gt 0 ]; then # if script is not called from within nix-on-droid app
exec /usr/bin/env "$@"
elif [ -x "${config.user.shell}" ]; then