mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Support running custom commands with login script
This commit is contained in:
parent
a5ab93eaec
commit
8629f29639
1 changed files with 12 additions and 8 deletions
20
script
20
script
|
|
@ -152,14 +152,18 @@ fi
|
||||||
echo "Sourcing home-manager environment..."
|
echo "Sourcing home-manager environment..."
|
||||||
. "\$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
. "\$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
echo "Dropping you into a shell."
|
if [ -z "$@" ]; then
|
||||||
echo "You can summon software from nixpkgs (e.g. gitMinimal) with:"
|
echo "Dropping you into a shell."
|
||||||
echo " * nix run nixpkgs.gitMinimal"
|
echo "You can summon software from nixpkgs (e.g. gitMinimal) with:"
|
||||||
echo " * nix-env -iA nixpkgs.gitMinimal"
|
echo " * nix run nixpkgs.gitMinimal"
|
||||||
echo " * [edit ~/.config/nixpkgs/home.nix and run] home-manager switch"
|
echo " * nix-env -iA nixpkgs.gitMinimal"
|
||||||
echo "or a myriad other ways."
|
echo " * [edit ~/.config/nixpkgs/home.nix and run] home-manager switch"
|
||||||
echo "Happy hacking!"
|
echo "or a myriad other ways."
|
||||||
exec /usr/bin/env bash "\$@"
|
echo "Happy hacking!"
|
||||||
|
exec /usr/bin/env bash
|
||||||
|
else
|
||||||
|
exec /usr/bin/env "$@"
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
chmod +x bootstrap/bin/.login-inner
|
chmod +x bootstrap/bin/.login-inner
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue