Zamiana systemd-boot na GRUB z własnym motywem

- Wyłączono `systemd-boot`, włączono `grub` z obsługą EFI.
- Dodano własny motyw GRUB z grafiką `jablon.png` i plikiem `theme.txt`.
- Motyw zawiera spersonalizowane kolory, czcionki i układ menu GRUB-a.
- Dodano dodatkowy wpis menu GRUB-a zatytułowany „Mój system”.
- Motyw kompilowany jest jako niestandardowe źródło w `pkgs.stdenv.mkDerivation`.
This commit is contained in:
installer
2025-05-05 20:32:50 +02:00
parent b0b071749b
commit c83428302c
3 changed files with 59 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 KiB

View File

@@ -0,0 +1,33 @@
# GRUB2 gfxmenu theme
desktop-image: "jablon.png"
title-text: ""
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"
+ boot_menu {
left = 15%
top = 30%
width = 70%
height = 40%
item_font = "DejaVu Sans Regular 12"
item_color = "#cccccc"
selected_item_color = "#ffffff"
icon_width = 32
icon_height = 32
item_height = 24
item_spacing = 12
selected_item_pixmap_style = "select_*.png"
}
+ label {
top = 82%
left = 15%
width = 70%
align = "center"
text = "Użyj strzałek do wyboru pozycji menu i Enter aby potwierdzić."
color = "#ffffff"
font = "DejaVu Sans Bold 10"
}

View File

@@ -15,8 +15,33 @@
}; };
# Bootloader. # Bootloader.
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = false;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
theme = pkgs.stdenv.mkDerivation {
name = "garand-grub-theme";
src = ../../../config/garand-grub-theme;
buildPhase = ''
mkdir -p $out/grub/themes/garand-grub-theme
cp -r * $out/grub/themes/garand-grub-theme/
'';
installPhase = "true";
};
extraEntries = ''
menuentry "Mój system" {
# konfiguracja wpisu menu
}
'';
gfxmodeEfi = "1920x1080";
};
}; };
# Make /tmp a tmpfs # Make /tmp a tmpfs
tmp = { tmp = {