nix/modules/desktop/plymouth.nix
2024-09-11 21:30:17 +02:00

29 lines
609 B
Nix

{ lib
, config
, pkgs
, ...
}:
let
cfg = config.my.desktop.plymouth;
in
{
options.my.desktop.plymouth = {
enable = lib.mkEnableOption "Enable Plymouth and apply customization module";
theme = lib.mkOption {
type = lib.types.str;
description = "The Plymouth theme to use, from adi1090x repo";
default = "colorful_loop";
};
};
config = lib.mkIf cfg.enable {
boot.plymouth = {
enable = true;
theme = "colorful_loop";
themePackages = [
(pkgs.adi1090x-plymouth-themes.override { selected_themes = [ "colorful_loop" ]; })
];
};
};
}