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:
@@ -15,8 +15,33 @@
|
||||
};
|
||||
# Bootloader.
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.enable = false;
|
||||
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
|
||||
tmp = {
|
||||
|
||||
Reference in New Issue
Block a user