mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
use bashInteractive right after the installation
This commit is contained in:
parent
cb0905a4a0
commit
b4818078f3
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue