nixos-anywhere-example/template/disk-configs/simple-efi.nix

37 lines
807 B
Nix
Raw Normal View History

2023-08-08 19:48:43 +02:00
# Example to create a bios compatible gpt partition
2023-08-15 10:27:14 +02:00
{ lib, ... }: {
2023-08-08 19:48:43 +02:00
disko.devices.disk = {
one = {
2023-10-12 12:01:32 +02:00
device = lib.mkDefault "/dev/nvme0n1";
2023-08-08 19:48:43 +02:00
type = "disk";
content = {
type = "gpt";
2023-08-15 10:27:14 +02:00
partitions = {
a_boot = {
2023-08-15 10:27:14 +02:00
name = "boot";
size = "1M";
type = "EF02";
};
b_ESP = {
2023-08-14 17:15:42 +02:00
size = "500M";
2023-08-08 19:48:43 +02:00
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
c_root = {
2023-08-08 19:48:43 +02:00
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}