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:
parent
b6a3a7a427
commit
f84fa02c3f
@ -1,7 +1,13 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkMerge mkOption types;
|
inherit (lib)
|
||||||
|
mkDefault
|
||||||
|
mkIf
|
||||||
|
mkMerge
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
;
|
||||||
cfg = config.mobile.boot.stage-1.gui;
|
cfg = config.mobile.boot.stage-1.gui;
|
||||||
inherit (config.boot.initrd) luks;
|
inherit (config.boot.initrd) luks;
|
||||||
minimalX11Config = pkgs.runCommand "minimalX11Config" {
|
minimalX11Config = pkgs.runCommand "minimalX11Config" {
|
||||||
@ -89,11 +95,20 @@ in
|
|||||||
XKB_CONFIG_ROOT = "/etc/X11/xkb";
|
XKB_CONFIG_ROOT = "/etc/X11/xkb";
|
||||||
XLOCALEDIR = "/etc/X11/locale";
|
XLOCALEDIR = "/etc/X11/locale";
|
||||||
};
|
};
|
||||||
mobile.boot.stage-1.bootConfig = mkIf (cfg.waitForDevices.enable) {
|
mobile.boot.stage-1.bootConfig = mkMerge [
|
||||||
quirks = {
|
(mkIf (cfg.waitForDevices.enable) {
|
||||||
wait_for_devices_delay = cfg.waitForDevices.delay;
|
quirks = {
|
||||||
};
|
wait_for_devices_delay = cfg.waitForDevices.delay;
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
{
|
||||||
|
splash = {
|
||||||
|
theme = mkDefault "night";
|
||||||
|
background = mkDefault "0xFF000000";
|
||||||
|
foreground = mkDefault "0xFFFFFFFF";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user