2023-01-10 02:38:06 +01:00
|
|
|
# This file contains arcane configurations copied from a random old wiki entry
|
|
|
|
# One day I shall revisit this and see what's needed and what isn't
|
2023-01-22 01:22:38 +01:00
|
|
|
{
|
2023-01-10 02:38:06 +01:00
|
|
|
boot.loader = {
|
|
|
|
efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
# assuming /boot is the mount point of the EFI partition in NixOS (as the installation section recommends).
|
|
|
|
efiSysMountPoint = "/boot";
|
|
|
|
};
|
|
|
|
grub = {
|
|
|
|
# despite what the configuration.nix manpage seems to indicate,
|
|
|
|
# as of release 17.09, setting device to "nodev" will still call
|
|
|
|
# `grub-install` if efiSupport is true
|
|
|
|
# (the devices list is not used by the EFI grub install,
|
|
|
|
# but must be set to some value in order to pass an assert in grub.nix)
|
|
|
|
devices = [ "nodev" ];
|
|
|
|
efiSupport = true;
|
|
|
|
enable = true;
|
|
|
|
# set $FS_UUID to the UUID of the EFI partition
|
|
|
|
extraEntries = ''
|
|
|
|
menuentry "Windows" {
|
|
|
|
insmod part_gpt
|
|
|
|
insmod fat
|
|
|
|
insmod search_fs_uuid
|
|
|
|
insmod chain
|
|
|
|
search --fs-uuid --set=root $FS_UUID
|
|
|
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
version = 2;
|
|
|
|
};
|
|
|
|
};
|
2023-02-09 23:55:36 +01:00
|
|
|
|
|
|
|
boot.loader.grub.base16.enable = true;
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|