Regenerated
This commit is contained in:
+17
-38
@@ -273,47 +273,23 @@ in
|
||||
let
|
||||
grubThemeDir = "/boot/grub/themes/catppuccin-mocha";
|
||||
grubThemeFile = "${grubThemeDir}/theme.txt";
|
||||
plymouthThemeDir = "/usr/share/plymouth/themes/catppuccin";
|
||||
in
|
||||
{
|
||||
boot = {
|
||||
initrd = {
|
||||
verbose = false;
|
||||
kernelModules = [];
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelParams = [ "quiet" "udev.log_level=3" "systemd.show_status=auto" ];
|
||||
consoleLogLevel = 3;
|
||||
|
||||
supportedFilesystems = [ "ntfs" ];
|
||||
|
||||
# Correct GRUB + UEFI configuration
|
||||
loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true; # enable UEFI mode
|
||||
devices = [ "nodev" ]; # nodev for UEFI
|
||||
useOSProber = true;
|
||||
theme = grubThemeFile;
|
||||
};
|
||||
|
||||
timeout = 5;
|
||||
};
|
||||
|
||||
# Plymouth splashscreen
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "rings";
|
||||
themePackages = with pkgs; [
|
||||
(adi1090x-plymouth-themes.override {
|
||||
selected_themes = [ "rings" ];
|
||||
})
|
||||
];
|
||||
};
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
devices = [ "nodev" ];
|
||||
useOSProber = true;
|
||||
theme = grubThemeFile;
|
||||
timeout = 5;
|
||||
};
|
||||
|
||||
# Activation script: write Catppuccin GRUB theme
|
||||
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}
|
||||
@@ -330,7 +306,10 @@ EOF
|
||||
cp "${flakeRoot}/assets/system/theming/boot/background.png" "${grubThemeDir}/background.png"
|
||||
fi
|
||||
|
||||
echo "GRUB Catppuccin Mocha theme installed."
|
||||
# Regenerate GRUB config so new kernels show up
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
echo "GRUB Catppuccin Mocha theme installed and config updated."
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user