fix: use disko simple-efi disk config

This commit is contained in:
Noa Aarts 2024-08-30 21:04:43 +02:00
parent f5f046d297
commit 608ffcfbec
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -1,22 +1,15 @@
# Example to create a bios compatible gpt partition
{ lib, ... }:
{ {
disko.devices = { disko.devices = {
disk.disk1 = { disk = {
device = lib.mkDefault "/dev/nvme0n1"; main = {
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_1TB_S5GXNX0RB19202X";
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
boot = { ESP = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "500M";
type = "EF00"; type = "EF00";
size = "500M";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
@ -29,9 +22,7 @@
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
mountOptions = [ };
"defaults"
];
}; };
}; };
}; };
@ -39,3 +30,4 @@
}; };
}; };
} }