19 lines
409 B
Nix
19 lines
409 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) ctp mkIf;
|
|
cfg = config.boot.plymouth.catppuccin;
|
|
enable = cfg.enable && config.boot.plymouth.enable;
|
|
in
|
|
{
|
|
options.boot.plymouth.catppuccin = ctp.mkCatppuccinOpt "plymouth";
|
|
|
|
config.boot.plymouth = mkIf enable {
|
|
theme = "catppuccin-${cfg.flavor}";
|
|
themePackages = [ (pkgs.catppuccin-plymouth.override { variant = cfg.flavor; }) ];
|
|
};
|
|
}
|