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:
parent
584c484d0c
commit
cab9a214b2
20
modules/initrd-boot-gui.nix
Normal file
20
modules/initrd-boot-gui.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
@ -15,6 +15,7 @@
|
|||||||
./hardware-screen.nix
|
./hardware-screen.nix
|
||||||
./hardware-soc.nix
|
./hardware-soc.nix
|
||||||
./initrd-base.nix
|
./initrd-base.nix
|
||||||
|
./initrd-boot-gui.nix
|
||||||
./initrd-fbterm.nix
|
./initrd-fbterm.nix
|
||||||
./initrd-fail.nix
|
./initrd-fail.nix
|
||||||
./initrd-kernel.nix
|
./initrd-kernel.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user