From 569d1eb231daa168342f01eb12ecd74a0a71e830 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Wed, 12 Jun 2024 23:33:02 -0400 Subject: [PATCH] Switch to grub, chainload Kubuntu's grub menu --- modules/hosts/nixos/bigboy/default.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/modules/hosts/nixos/bigboy/default.nix b/modules/hosts/nixos/bigboy/default.nix index cc7b7d6..50ecd9b 100644 --- a/modules/hosts/nixos/bigboy/default.nix +++ b/modules/hosts/nixos/bigboy/default.nix @@ -12,8 +12,25 @@ ]; # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot.loader = { + grub = { + device = "nodev"; + enable = true; + useOSProber = true; + efiSupport = true; + # set $FS_UUID to the UUID of the EFI partition + extraEntries = '' + menuentry "Kubuntu" { + insmod part_gpt + insmod fat + insmod chain + search --no-floppy --fs-uuid --set=root B208-923B + chainloader /EFI/ubuntu/grubx64.efi + } + ''; + }; + efi.canTouchEfiVariables = true; + }; environment.sessionVariables.NIXOS_OZONE_WL = "1";