diff --git a/config/garand-grub-theme/jablon.png b/config/garand-grub-theme/jablon.png new file mode 100644 index 0000000..0eeadef Binary files /dev/null and b/config/garand-grub-theme/jablon.png differ diff --git a/config/garand-grub-theme/theme.txt b/config/garand-grub-theme/theme.txt new file mode 100644 index 0000000..7dfd6f7 --- /dev/null +++ b/config/garand-grub-theme/theme.txt @@ -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" +} \ No newline at end of file diff --git a/hosts/garand-laptop/config/boot.nix b/hosts/garand-laptop/config/boot.nix index 7bf4541..701d8ce 100644 --- a/hosts/garand-laptop/config/boot.nix +++ b/hosts/garand-laptop/config/boot.nix @@ -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 = {