diff --git a/modules/nixos/plymouth.nix b/modules/nixos/plymouth.nix new file mode 100644 index 0000000..539ceeb --- /dev/null +++ b/modules/nixos/plymouth.nix @@ -0,0 +1,22 @@ +{ 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; + }) + ]; + }; +} diff --git a/test.nix b/test.nix index 98431ff..59022d1 100644 --- a/test.nix +++ b/test.nix @@ -29,7 +29,10 @@ testers.runNixOSTest { common ]; - boot.loader.grub = enable; + boot = { + loader.grub = enable; + plymouth = enable; + }; services = { displayManager.sddm = enable;