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