bootloaders: split bootloaders into seperate files

This commit is contained in:
Nico 2025-12-12 21:44:58 +11:00
parent ea97683dfd
commit cb2c94c4d9
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
4 changed files with 33 additions and 2 deletions

View file

@ -51,6 +51,7 @@
./modules/users/nico.nix ./modules/users/nico.nix
./modules/users/alex.nix ./modules/users/alex.nix
./modules/hardware/secureboot.nix ./modules/hardware/secureboot.nix
./modules/hardware/bootloader/systemd-boot.nix
lanzaboote.nixosModules.lanzaboote lanzaboote.nixosModules.lanzaboote
./hosts/nijika/configuration.nix ./hosts/nijika/configuration.nix

View file

@ -6,9 +6,7 @@
{ {
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.timeout = 0;
# Networking # Networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
boot.loader.limine = {
enable = true;
validateChecksums = true;
panicOnChecksumMismatch = true;
enableEditor = false;
extraEntries =
''
/memtest86
protocol: chainload
path: boot():///efi/memtest86/memtest86.efi
'';
additionalFiles = {
"efi/memtest86/memtest86.efi" = "${pkgs.memtest86-efi}/BOOTX64.efi";
};
secureBoot.enable = true;
};
}

View file

@ -0,0 +1,9 @@
{ config, ... }:
{
boot.loader.systemd-boot = {
enable = true;
};
boot.loader.timeout = 0;
}