mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-14 09:16:39 +03:00
fb4984cb90
The applet is specifically written to show what we call the "recovery menu". Yes, it's also the boot selection, but it will get confusing with the upcoming boot tracking splash UI that's upcoming.
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
key-held = pkgs.runCommand "key-held.mrb" {} ''
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${../boot/applets}/key-held.rb
|
|
'';
|
|
boot-splash = pkgs.runCommand "boot-splash.mrb" {} ''
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${../boot/recovery-menu}/lib/*.rb ${../boot/splash}/main.rb
|
|
'';
|
|
boot-error = pkgs.runCommand "boot-error.mrb" {} ''
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${../boot/recovery-menu}/lib/*.rb ${../boot/error}/main.rb
|
|
'';
|
|
in
|
|
{
|
|
mobile.boot.stage-1.contents = with pkgs; [
|
|
{
|
|
object = (builtins.path { path = ../artwork/logo/logo.white.svg; });
|
|
symlink = "/etc/logo.svg";
|
|
}
|
|
{
|
|
object = boot-error;
|
|
symlink = "/applets/boot-error.mrb";
|
|
}
|
|
{
|
|
object = boot-splash;
|
|
symlink = "/applets/boot-splash.mrb";
|
|
}
|
|
{
|
|
object = pkgs.mobile-nixos.stage-1.boot-recovery-menu;
|
|
symlink = "/applets/boot-selection.mrb";
|
|
}
|
|
{
|
|
object = key-held;
|
|
symlink = "/applets/key-held.mrb";
|
|
}
|
|
];
|
|
mobile.boot.stage-1.extraUtils = with pkgs; [
|
|
# Used for `key-held.mrb`.
|
|
{ package = evtest; }
|
|
];
|
|
}
|