rose-pine-nix/modules/nixos/plymouth.nix

23 lines
430 B
Nix
Raw Normal View History

{ 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;
})
];
};
}