aboutsummaryrefslogtreecommitdiff
path: root/modules/boot/system/plymouth.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/boot/system/plymouth.nix')
-rw-r--r--modules/boot/system/plymouth.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/boot/system/plymouth.nix b/modules/boot/system/plymouth.nix
new file mode 100644
index 0000000..5f7952b
--- /dev/null
+++ b/modules/boot/system/plymouth.nix
@@ -0,0 +1,21 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.boot.plymouth;
+in
+ lib.mkIf cfg.enable {
+ boot.plymouth = {
+ enable = true;
+ theme =
+ if (cfg.theme == "catppuccin")
+ then "catppuccin-macchiato" # for whatever reason catppuccin-mocha has errors
+ else "nixos-bgrt";
+ themePackages =
+ if (cfg.theme == "catppuccin")
+ then [pkgs.catppuccin-plymouth]
+ else [pkgs.nixos-bgrt-plymouth];
+ };
+ }