From 79b6674716e853f63d504e287e9ccce42ed2d041 Mon Sep 17 00:00:00 2001 From: Igor Rzegocki Date: Tue, 5 Nov 2024 16:07:16 +0100 Subject: [PATCH] feat: add plymouth --- modules/system/apps/default.nix | 1 + modules/system/apps/plymouth/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 modules/system/apps/plymouth/default.nix diff --git a/modules/system/apps/default.nix b/modules/system/apps/default.nix index 8480f48..f848f2a 100644 --- a/modules/system/apps/default.nix +++ b/modules/system/apps/default.nix @@ -9,6 +9,7 @@ _: { ./letsencrypt ./nginx ./openconnect + ./plymouth ./postgresql ./redis ./rustdesk diff --git a/modules/system/apps/plymouth/default.nix b/modules/system/apps/plymouth/default.nix new file mode 100644 index 0000000..66e10d4 --- /dev/null +++ b/modules/system/apps/plymouth/default.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.mySystemApps.plymouth; +in +{ + options.mySystemApps.plymouth = { + enable = lib.mkEnableOption "plymouth"; + }; + + config = lib.mkIf cfg.enable { + boot.plymouth = { + enable = true; + themePackages = [ (pkgs.catppuccin-plymouth.override { variant = "mocha"; }) ]; + theme = "catppuccin-mocha"; + }; + }; +}