Regenerated

This commit is contained in:
2026-03-23 06:11:35 +00:00
parent aee723536d
commit 65731b68a9
33 changed files with 0 additions and 1428 deletions
@@ -1,45 +0,0 @@
{ pkgs, config, lib, flakeRoot, ... }:
let
grubThemeDir = "/boot/grub/themes/catppuccin-mocha";
grubThemeFile = "${grubThemeDir}/theme.txt";
in
{
boot.loader.grub = {
enable = true;
efiSupport = true;
devices = [ "nodev" ];
useOSProber = true;
theme = grubThemeFile;
timeout = 5;
};
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [ "quiet" "udev.log_level=3" "systemd.show_status=auto" ];
boot.consoleLogLevel = 3;
boot.supportedFilesystems = [ "ntfs" ];
# Activation script for theme + background
system.activationScripts.grubTheme = {
text = ''
mkdir -p ${grubThemeDir}
cat > ${grubThemeFile} <<EOF
# Catppuccin Mocha GRUB theme
desktop-color = #1e1e2e
normal-color = #cdd6f4
selected-item-color = #f5e0dc
selected-item-highlight-color = #f5c2e7
EOF
if [ -f "${flakeRoot}/assets/system/theming/boot/background.png" ]; then
cp "${flakeRoot}/assets/system/theming/boot/background.png" "${grubThemeDir}/background.png"
fi
# Regenerate GRUB config so new kernels show up
# grub-mkconfig -o /boot/grub/grub.cfg
echo "GRUB Catppuccin Mocha theme installed and config updated."
'';
};
}