bootloaders: split bootloaders into seperate files
This commit is contained in:
parent
ea97683dfd
commit
cb2c94c4d9
4 changed files with 33 additions and 2 deletions
|
|
@ -51,6 +51,7 @@
|
|||
./modules/users/nico.nix
|
||||
./modules/users/alex.nix
|
||||
./modules/hardware/secureboot.nix
|
||||
./modules/hardware/bootloader/systemd-boot.nix
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
|
||||
./hosts/nijika/configuration.nix
|
||||
|
|
|
|||
|
|
@ -6,9 +6,7 @@
|
|||
|
||||
{
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.timeout = 0;
|
||||
|
||||
# Networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
|
|
|||
23
modules/hardware/bootloader/limine.nix
Normal file
23
modules/hardware/bootloader/limine.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
9
modules/hardware/bootloader/systemd-boot.nix
Normal file
9
modules/hardware/bootloader/systemd-boot.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
boot.loader.systemd-boot = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
boot.loader.timeout = 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue