BIOS compatibility

This commit is contained in:
Daniel Langbein 2024-02-06 18:35:30 +01:00
parent b57f407754
commit 555843a140
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 17 additions and 5 deletions

View File

@ -16,6 +16,12 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
# This partition is required for BIOS/GPT compatibility.
BOOT = {
name = "boot";
size = "1M";
type = "EF02";
};
ESP = { ESP = {
label = "EFI"; label = "EFI";
name = "ESP"; name = "ESP";
@ -25,9 +31,6 @@
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = [
"defaults"
];
}; };
}; };
LUKS = { LUKS = {

View File

@ -37,6 +37,7 @@
# Memory in bytes required to unlock the LUKS partition while booting. # Memory in bytes required to unlock the LUKS partition while booting.
# The default value is 1 GB (1000000). # The default value is 1 GB (1000000).
# Set this as high as possible, but leave some buffer (e.g. 500 MB). # Set this as high as possible, but leave some buffer (e.g. 500 MB).
# As of 2024-02 the possible maximum is 4194304
# Example: If you have 4 GB memory, set this to 3500000. # Example: If you have 4 GB memory, set this to 3500000.
pbkdf-memory = 4000000; pbkdf-memory = 4000000;
}) })
@ -59,8 +60,16 @@
# efiInstallAsRemovable = true; # efiInstallAsRemovable = true;
#}; #};
# Alternative to grub. # Bootloader: BIOS (old systems)
# This worked with yodaHP host. #boot.loader.grub = {
# # No need to set devices, disko will add all devices that have a EF02 partition to the list.
# # devices = [];
# efiSupport = true;
# efiInstallAsRemovable = true;
#};
# Bootloader: EFI (newer systems)
#
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;