mirror of
https://codeberg.org/privacy1st/nixos-anywhere-example
synced 2025-01-22 06:35:45 +01:00
BIOS compatibility
This commit is contained in:
parent
b57f407754
commit
555843a140
@ -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 = {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user