disko for rock5b

This commit is contained in:
Andrea Ciceri 2023-04-12 10:55:15 +02:00
parent 7cf02684d9
commit 11b7466753
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
3 changed files with 51 additions and 27 deletions

35
hosts/rock5b/disko.nix Normal file
View file

@ -0,0 +1,35 @@
{emmc ? "/dev/mmcblk0", ...}: {
disko.devices = {
disk = {
emmc = {
type = "disk";
device = emmc;
content = {
type = "table";
format = "gpt";
partitions = [
{
type = "partition";
start = "32.8kB";
end = "12.6MB";
name = "uboot";
bootable = true;
}
{
type = "partition";
name = "NIXOS_ROOTFS";
start = "13.6MB";
end = "100%";
flags = ["legacy_boot"];
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}