Nix-Config/hosts/apollo/boot/bootloader.nix
2026-10-02 19:19:50 -05:00

29 lines
No EOL
659 B
Nix

{ inputs, lib, pkgs, ... }:
{
boot = {
loader = {
efi.canTouchEfiVariables = true;
grub.enable = lib.mkForce false;
systemd-boot.enable = lib.mkForce false;
limine = {
enable = true;
resolution = "3840x1080";
enableEditor = true;
maxGenerations = 11;
secureBoot = {
enable = true;
autoGenerateKeys = true;
autoEnrollKeys.enable = true;
};
extraEntries = ''
/Windows
protocol: efi
path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
'';
};
};
};
environment.systemPackages = [ pkgs.sbctl ];
}