1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 09:16:39 +03:00

initrd-boot-gui: Add to initrd

This commit is contained in:
Samuel Dionne-Riel 2020-02-28 22:00:21 -05:00
parent 584c484d0c
commit cab9a214b2
2 changed files with 21 additions and 0 deletions

View File

@ -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";
}
];
}

View File

@ -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