- Remove the ESP partition configuration in `disko.nix` as it’s unnecessary for legacy BIOS setups. - Enable GRUB bootloader and disable EFI settings in `default.nix` for compatibility with Hetzner cloud instances.
32 lines
684 B
Nix
32 lines
684 B
Nix
# USAGE in your configuration.nix.
|
|
# Update devices to match your hardware.
|
|
# {
|
|
# imports = [ ./disko-config.nix ];
|
|
# disko.devices.disk.main.device = "/dev/sda";
|
|
# }
|
|
{
|
|
config.disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
boot = {
|
|
size = "1M";
|
|
type = "EF02"; # for grub MBR
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|