From cab9a214b2da1bcdc8a4cd66c668346be4a14a83 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Fri, 28 Feb 2020 22:00:21 -0500 Subject: [PATCH] initrd-boot-gui: Add to initrd --- modules/initrd-boot-gui.nix | 20 ++++++++++++++++++++ modules/module-list.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 modules/initrd-boot-gui.nix 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