grub theme

This commit is contained in:
Hadi
2025-03-18 21:52:39 +01:00
parent 5a8bdffc2a
commit 73bca2fbfb

View File

@@ -1,7 +1,8 @@
{ pkgs, ... }: { { pkgs, config, ... }: {
stylix.targets.grub.enable = false;
boot = { boot = {
bootspec.enable = true; bootspec.enable = true;
loader = { loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = { grub = {
@@ -9,7 +10,29 @@
devices = [ "nodev" ]; devices = [ "nodev" ];
efiSupport = true; efiSupport = true;
useOSProber = true; useOSProber = true;
gfxmodeEfi = "1280x720"; };
grub2-theme = {
enable = true;
theme = "whitesur";
icon = "whitesur";
splashImage = config.stylix.image;
bootMenuConfig = ''
item_color = "#333333"
selected_item_color = "#000000"
left = 30%
top = 30%
width = 40%
height = 40%
item_font = "Unifont Regular 24"
icon_width = 48
icon_height = 48
item_icon_space = 24
item_height = 56
item_padding = 8
item_spacing = 16
selected_item_pixmap_style = "select_*.png"
'';
}; };
}; };