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 = [