Switch to grub, chainload Kubuntu's grub menu

This commit is contained in:
Gene Liverman 2024-06-12 23:33:02 -04:00
parent 7292d10cd6
commit 569d1eb231

View file

@ -12,8 +12,25 @@
]; ];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; 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"; environment.sessionVariables.NIXOS_OZONE_WL = "1";