disko
for rock5b
This commit is contained in:
parent
7cf02684d9
commit
11b7466753
3 changed files with 51 additions and 27 deletions
35
hosts/rock5b/disko.nix
Normal file
35
hosts/rock5b/disko.nix
Normal 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 = "/";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue