From d96b0b3bb7e994254d2d7209d0048a4b3c0b0a16 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 15 Feb 2026 01:59:33 -0500 Subject: [PATCH] fix: move bootloader to grub --- hosts/xps15/configuration.nix | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/hosts/xps15/configuration.nix b/hosts/xps15/configuration.nix index 2bd57f5..0f7f675 100644 --- a/hosts/xps15/configuration.nix +++ b/hosts/xps15/configuration.nix @@ -11,6 +11,25 @@ let loginShell = pkgs.writeShellScript "login-shell" '' exec $(getent passwd $(id -un) | cut -d: -f7) -l ''; + grubTheme = pkgs.runCommand "grub-theme" { + nativeBuildInputs = [ pkgs.grub2 ]; + } '' + mkdir -p $out + grub-mkfont -s 32 -o $out/font.pf2 ${../../fonts/berkeley-mono/BerkeleyMono-Regular.ttf} + cat > $out/theme.txt << 'EOF' + desktop-color: "#000000" + + + boot_menu { + left = 30% + top = 30% + width = 40% + height = 40% + item_color = "#999999" + selected_item_color = "#ffffff" + icon_width = 0 + } + EOF + ''; in { imports = [ @@ -18,9 +37,15 @@ in ./hardware.nix ]; - boot.loader.systemd-boot = { + boot.loader.grub = { enable = true; + efiSupport = true; + device = "nodev"; + useOSProber = true; configurationLimit = 2; + theme = grubTheme; + font = ../../fonts/berkeley-mono/BerkeleyMono-Regular.ttf; + fontSize = 24; }; boot.loader.efi.canTouchEfiVariables = true; boot.kernelParams = [