{ config, pkgs, lib, flakeRoot, ... }: let # Path where GRUB theme will live grubThemeDir = "/boot/grub/themes/catppuccin-mocha"; grubThemeFile = "${grubThemeDir}/theme.txt"; # Path to your custom splash image bootAssets = "${flakeRoot}/assets/system/theming/boot"; # Catppuccin Mocha color palette catppuccin = { base = "#1e1e2e"; mantle = "#181825"; crust = "#11111b"; text = "#cdd6f4"; rosewater = "#f5e0dc"; flamingo = "#f2cdcd"; pink = "#f5c2e7"; mauve = "#cba6f7"; red = "#f38ba8"; maroon = "#eba0ac"; peach = "#fab387"; yellow = "#f9e2af"; green = "#a6e3a1"; teal = "#94e2d5"; sky = "#89dceb"; sapphire = "#74c7ec"; blue = "#89b4fa"; lavender = "#b4befe"; }; in { system.activationScripts.grubTheme = { text = '' echo "Installing GRUB Catppuccin Mocha theme..." # Create theme directory mkdir -p ${grubThemeDir} # Generate theme.txt automatically cat > ${grubThemeFile} <