17 lines
428 B
Nix
Raw Normal View History

2024-12-17 15:26:10 -05:00
{ config, lib, pkgs, ... }:
{
imports = [];
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'