nixdots/options/system/boot/plymouth.nix

31 lines
992 B
Nix
Raw Normal View History

2024-07-26 23:07:07 +00:00
{lib, ...}:
with lib; let
2024-04-12 21:28:50 +00:00
inherit (lib) mkEnableOption mkOption types;
2024-07-26 23:07:07 +00:00
in {
2024-04-12 21:28:50 +00:00
options.myOptions.system.boot.plymouth = {
2024-04-12 22:13:54 +00:00
enable = mkEnableOption ''
Plymouth boot splash.
Works best on devices with slower boot times, otherwise it might just appear
for a second or two, at which point it's probably not worth enabling.
'';
2024-04-12 21:28:50 +00:00
withThemes = mkEnableOption ''
Whether or not themes from https://github.com/adi1090x/plymouth-themes
should be enabled and configured.
'';
selectedTheme = mkOption {
type = types.str;
default = "bgrt";
description = ''
Choose which theme to use.
If you have `myOptions.system.boot.plymouth.withThemes` enabled, you can use more themes from the
https://github.com/adi1090x/plymouth-themes project. You can find the the available theme names at
https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/themes/adi1090x-plymouth-themes/shas.nix.
'';
};
};
}