9ffc6b8c26
Co-authored-by: seth <getchoo@tuta.io>
22 lines
430 B
Nix
22 lines
430 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.flavour}";
|
|
themePackages = [
|
|
(pkgs.catppuccin-plymouth.override {
|
|
variant = cfg.flavour;
|
|
})
|
|
];
|
|
};
|
|
}
|