mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
environment.motd: add option
This commit is contained in:
parent
a99c1e0416
commit
ffac515cfb
3 changed files with 56 additions and 40 deletions
|
|
@ -13,10 +13,11 @@ writeText "login-inner" ''
|
|||
|
||||
set -eo pipefail
|
||||
|
||||
if [ "$#" -eq 0 ]; then # if script is called from within nix-on-droid app
|
||||
echo "Welcome to Nix-on-Droid!"
|
||||
echo "If nothing works, open an issue at https://github.com/t184256/nix-on-droid/issues or try the rescue shell."
|
||||
fi
|
||||
${lib.optionalString (config.environment.motd != null) ''
|
||||
if [ "$#" -eq 0 ]; then # if script is called from within nix-on-droid app
|
||||
echo "${lib.removeSuffix "\n" config.environment.motd}"
|
||||
fi
|
||||
''}
|
||||
|
||||
${lib.optionalString config.build.initialBuild ''
|
||||
if [ -e /etc/UNINTIALISED ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue