mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
38 lines
784 B
Nix
38 lines
784 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
}:
|
|
{
|
|
local.packages = {
|
|
inherit (pkgs) sbctl;
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"L+ /var/lib/sbctl - - - - /persist/secureboot"
|
|
];
|
|
|
|
boot = {
|
|
loader = {
|
|
limine = {
|
|
enable = true;
|
|
biosSupport = false;
|
|
efiSupport = true;
|
|
maxGenerations = 10;
|
|
enableEditor = false;
|
|
secureBoot = {
|
|
enable = true;
|
|
};
|
|
extraEntries = ''
|
|
/Windows
|
|
protocol: efi
|
|
path: uuid(58952b7f-ac08-4fa3-92ad-cac5a3349199):/EFI/Microsoft/Boot/bootmgfw.efi
|
|
'';
|
|
};
|
|
efi.efiSysMountPoint = "/efi0E";
|
|
# just in case
|
|
systemd-boot.enable = lib.mkForce false;
|
|
grub.enable = lib.mkForce false;
|
|
timeout = lib.mkForce 5;
|
|
};
|
|
};
|
|
}
|