fix disko generation

This commit is contained in:
Gerg-L 2023-10-14 17:50:35 -04:00
parent 5a6d712c2e
commit 9a6522d05c
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
4 changed files with 25 additions and 20 deletions

36
disko/game-desktop.nix Normal file
View file

@ -0,0 +1,36 @@
_: {
disk.nvme0n1 =
let
baseDevice = "/dev/disk/by-id/nvme-WDC_PC_SN530_SDBPNPZ-512G-1006_21311N802456";
in
{
device = baseDevice;
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
device = "${baseDevice}-part1";
start = "1MiB";
end = "1GiB";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
device = "${baseDevice}-part2";
start = "1GiB";
end = "100%";
type = "EF00";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
}