29 lines
646 B
Nix
Raw Normal View History

2024-12-20 22:37:44 -05:00
{
config,
lib,
pkgs,
...
}:
2024-12-17 15:26:10 -05:00
{
2024-12-20 22:37:44 -05:00
imports = [ ];
2024-12-17 15:26:10 -05:00
2024-12-19 15:06:57 -05:00
boot.loader.grub.enable = false;
2024-12-17 15:26:10 -05:00
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
# TODO: make not write bootx64.efi
2024-12-19 15:06:57 -05:00
boot.loader.efi.canTouchEfiVariables = false;
2024-12-17 15:26:10 -05:00
# Automatically delete old generations
boot.loader.systemd-boot.configurationLimit = 3;
}
2024-12-19 15:06:57 -05:00
# efibootmgr -c -d /dev/sda -p 1 -L NixOS-boot -l '\EFI\NixOS-boot\grubx64.efi'
# Text-only:
# sudo cp "$(nix-build '<nixpkgs>' --no-out-link -A 'refind')/share/refind/refind_x64.efi" /boot/EFI/boot/bootx64.efi
# Full graphics:
# $ sudo nix-shell -p refind efibootmgr
# $ refind-install