diff --git a/modules/initrd-boot-gui.nix b/modules/initrd-boot-gui.nix new file mode 100644 index 00000000..10a6651b --- /dev/null +++ b/modules/initrd-boot-gui.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +let + boot-gui = ../boot/gui; + boot-selection = pkgs.runCommand "boot-selection.mrb" {} '' + ${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${boot-gui}/lib/*.rb ${boot-gui}/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-selection; + symlink = "/applets/boot-selection.mrb"; + } + ]; +} diff --git a/modules/module-list.nix b/modules/module-list.nix index b1411e3d..9a8231fb 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -15,6 +15,7 @@ ./hardware-screen.nix ./hardware-soc.nix ./initrd-base.nix + ./initrd-boot-gui.nix ./initrd-fbterm.nix ./initrd-fail.nix ./initrd-kernel.nix