nixpkgs/nixos/modules/system
Samuel Dionne-Riel 894d47f989 nixos/grub: Always install with bootloader id
The intent was to not pass the flag when installing as removable. In
reality there is a third case, where you may not want to touch EFI
variables, and not want to install as removable.

In that case, it would install to the generic \EFI\grub\grubx64.efi,
which is not a good choice in any cases. The operating system should
"own" their path under \EFI\ to be a good citizen [citation needed].

With this change, there can be only two paths GRUB can be installed to:

 - \EFI\NixOS-boot\grubx64.efi
 - \EFI\BOOT\bootx64.efi

This removes the surprising behaviour where GRUB may be installed to a
different location only because we configured NixOS not to touch EFI
variables.

It may be necessary under some configurations to install GRUB without
touching EFI variables, but to the NixOS-owned location.
2023-08-01 18:54:27 -04:00
..
activation Merge pull request #237040 from roberth/flexible-activation 2023-07-08 16:06:25 +02:00
boot nixos/grub: Always install with bootloader id 2023-08-01 18:54:27 -04:00
etc nixos/etc: keep directories in derivation name 2023-06-07 00:08:43 +02:00
build.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00