rose-pine-nix/modules/nixos/plymouth.nix
Weathercold 9ffc6b8c26
feat(nixos): add support for plymouth (#166)
Co-authored-by: seth <getchoo@tuta.io>
2024-05-14 00:10:42 -04:00

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