Skip to content

Commit

Permalink
Update login-inner.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi authored Aug 29, 2024
1 parent 248cc08 commit 5489cd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/environment/login/login-inner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ writeText "login-inner" ''
usershell="${config.user.shell}"
if [ "$#" -gt 0 ]; then # if script is not called from within Nix-on-Droid app
exec /usr/bin/env "$@"
elif [ -d "$usershell" ]; then
echo "Cannot execute shell '${config.user.shell}', it is a directory."
echo "Unlike nixos you should point `user.shell` to the exact binary."
echo "Falling back to bash"
exec -l bash
elif [ -x "$usershell" ]; then
exec -a "-''${usershell##*/}" "$usershell"
else
Expand Down

0 comments on commit 5489cd9

Please sign in to comment.