2024-05-21 14:53:46 -07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-05-13 21:10:42 -07:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (lib) ctp mkIf;
|
|
|
|
cfg = config.boot.plymouth.catppuccin;
|
|
|
|
enable = cfg.enable && config.boot.plymouth.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.boot.plymouth.catppuccin = ctp.mkCatppuccinOpt { name = "plymouth"; };
|
2024-05-13 21:10:42 -07:00
|
|
|
|
|
|
|
config.boot.plymouth = mkIf enable {
|
2024-05-21 17:23:55 -07:00
|
|
|
theme = "catppuccin-${cfg.flavor}";
|
|
|
|
themePackages = [ (pkgs.catppuccin-plymouth.override { variant = cfg.flavor; }) ];
|
2024-05-13 21:10:42 -07:00
|
|
|
};
|
|
|
|
}
|