2020-02-29 06:00:21 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2020-02-29 23:36:36 +03:00
|
|
|
key-held = pkgs.runCommand "key-held.mrb" {} ''
|
|
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${../boot/applets}/key-held.rb
|
|
|
|
'';
|
2020-03-10 02:44:27 +03:00
|
|
|
boot-error = pkgs.runCommand "boot-error.mrb" {} ''
|
2020-10-24 04:31:58 +03:00
|
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${../boot/recovery-menu}/lib/*.rb ${../boot/error}/main.rb
|
2020-03-10 02:44:27 +03:00
|
|
|
'';
|
2020-02-29 06:00:21 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
mobile.boot.stage-1.contents = with pkgs; [
|
|
|
|
{
|
|
|
|
object = (builtins.path { path = ../artwork/logo/logo.white.svg; });
|
|
|
|
symlink = "/etc/logo.svg";
|
|
|
|
}
|
2020-03-10 02:44:27 +03:00
|
|
|
{
|
|
|
|
object = boot-error;
|
|
|
|
symlink = "/applets/boot-error.mrb";
|
|
|
|
}
|
2020-03-10 00:31:03 +03:00
|
|
|
{
|
2020-10-27 07:33:24 +03:00
|
|
|
object = pkgs.mobile-nixos.stage-1.boot-splash;
|
2020-03-10 00:31:03 +03:00
|
|
|
symlink = "/applets/boot-splash.mrb";
|
|
|
|
}
|
2020-02-29 06:00:21 +03:00
|
|
|
{
|
2020-10-24 04:31:58 +03:00
|
|
|
object = pkgs.mobile-nixos.stage-1.boot-recovery-menu;
|
2020-02-29 06:00:21 +03:00
|
|
|
symlink = "/applets/boot-selection.mrb";
|
|
|
|
}
|
2020-02-29 23:36:36 +03:00
|
|
|
{
|
|
|
|
object = key-held;
|
|
|
|
symlink = "/applets/key-held.mrb";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
mobile.boot.stage-1.extraUtils = with pkgs; [
|
|
|
|
# Used for `key-held.mrb`.
|
2020-05-22 07:23:40 +03:00
|
|
|
{ package = evtest; }
|
2020-02-29 06:00:21 +03:00
|
|
|
];
|
|
|
|
}
|