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

modules/initrd-boot-gui: Add config for splash colours

This commit is contained in:
Samuel Dionne-Riel 2023-04-25 23:49:56 -04:00
parent b6a3a7a427
commit f84fa02c3f

View File

@ -1,7 +1,13 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkOption types;
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption
types
;
cfg = config.mobile.boot.stage-1.gui;
inherit (config.boot.initrd) luks;
minimalX11Config = pkgs.runCommand "minimalX11Config" {
@ -89,11 +95,20 @@ in
XKB_CONFIG_ROOT = "/etc/X11/xkb";
XLOCALEDIR = "/etc/X11/locale";
};
mobile.boot.stage-1.bootConfig = mkIf (cfg.waitForDevices.enable) {
mobile.boot.stage-1.bootConfig = mkMerge [
(mkIf (cfg.waitForDevices.enable) {
quirks = {
wait_for_devices_delay = cfg.waitForDevices.delay;
};
})
{
splash = {
theme = mkDefault "night";
background = mkDefault "0xFF000000";
foreground = mkDefault "0xFFFFFFFF";
};
}
];
})
]);
}