2024-05-12 17:31:47 +00:00
|
|
|
{ lib, ... }:
|
2024-04-30 17:16:13 +00:00
|
|
|
{
|
2024-05-12 17:31:47 +00:00
|
|
|
boot.loader.grub.efiSupport = lib.mkDefault true;
|
|
|
|
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
|
2024-04-30 17:16:13 +00:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
main = {
|
|
|
|
type = "disk";
|
|
|
|
# Set the following in flake.nix for each maschine:
|
|
|
|
# device = <uuid>;
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
|
|
|
type = "EF02"; # for grub MBR
|
2024-05-12 17:31:47 +00:00
|
|
|
priority = 1;
|
2024-04-30 17:16:13 +00:00
|
|
|
};
|
|
|
|
ESP = {
|
|
|
|
size = "512M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|