2018-06-17 06:43:11 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2019-09-22 00:46:09 +03:00
|
|
|
# This is the earliest in stage-2 we can show, for vt-less devices, that
|
|
|
|
# stage-2 is really happening.
|
|
|
|
config.boot.postBootCommands = ''
|
2020-03-10 02:57:31 +03:00
|
|
|
# Reset the VT console.
|
|
|
|
# The Mobile NixOS stage-1 can be rude.
|
|
|
|
for d in /sys/class/vtconsole/vtcon*; do
|
|
|
|
if ${pkgs.busybox}/bin/grep 'frame buffer' "$d/name"; then
|
|
|
|
echo 1 > "$d/bind"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# Though directly rudely show the stage-2 splash.
|
2020-03-10 00:48:52 +03:00
|
|
|
${pkgs.ply-image}/bin/ply-image --clear=0x000000 ${../artwork/splash.stage-2.png} > /dev/null 2>&1
|
2019-09-22 00:46:09 +03:00
|
|
|
'';
|
2018-06-17 06:43:11 +03:00
|
|
|
}
|