New sisko partitioning

This commit is contained in:
Andrea Ciceri 2024-02-21 17:53:00 +01:00
parent 29e3650038
commit 087d001124
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -1,5 +1,6 @@
let let
emmc = "/dev/mmcblk0"; emmc = "/dev/disk/by-id/mmc-SLD64G_0xf6be3ba0";
ssd = "/dev/disk/by-id/ata-CT240BX300SSD1_1739E1042F3C";
# hd1 = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550"; # hd1 = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550";
# hd2 = "/dev/disk/by-id/ata-WDC_WD10EADX-22TDHB0_WD-WCAV5V359530"; # hd2 = "/dev/disk/by-id/ata-WDC_WD10EADX-22TDHB0_WD-WCAV5V359530";
hd = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550-part1"; hd = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550-part1";
@ -7,114 +8,34 @@ let
in { in {
disko.devices = { disko.devices = {
disk = { disk = {
emmc = { ssd = {
device = ssd;
type = "disk"; type = "disk";
device = emmc;
content = { content = {
type = "table"; type = "gpt";
format = "gpt"; partitions = {
partitions = [ ESP = {
{ label = "ESP";
start = "32.8kB"; type = "EF00";
end = "12.6MB"; size = "1G";
name = "uboot"; content = {
bootable = true; type = "filesystem";
} format = "vfat";
{ mountpoint = "/boot";
name = "NIXOS_ROOTFS"; };
start = "13.6MB"; };
end = "100%"; root = {
flags = ["legacy_boot"]; label = "root";
size = "100%";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
}; };
}
];
}; };
}; };
# hd = {
# type = "disk";
# device = hd;
# content = {
# type = "table";
# format = "gpt";
# partitions = [
# {
# name = "hd";
# start = "0%";
# end = "100%";
# content = {
# type = "filesystem";
# format = "ext4";
# mountpoint = "/mnt/hd";
# };
# }
# ];
# };
# };
# hd1 = {
# type = "disk";
# device = hd1;
# content = {
# type = "table";
# format = "gpt";
# partitions = [
# {
# name = "primary";
# start = "0";
# end = "100%";
# content = {
# type = "mdraid";
# name = "raid1";
# };
# }
# ];
# };
# };
# hd2 = {
# type = "disk";
# device = hd2;
# content = {
# type = "table";
# format = "gpt";
# partitions = [
# {
# name = "primary";
# start = "0";
# end = "100%";
# content = {
# type = "mdraid";
# name = "raid1";
# };
# }
# ];
# };
# };
}; };
};
# mdadm = { };
# raid1 = {
# type = "mdadm";
# level = 1;
# content = {
# type = "table";
# format = "gpt";
# partitions = [
# {
# name = "primary";
# start = "0";
# end = "100%";
# content = {
# type = "filesystem";
# format = "ext4";
# mountpoint = "/mnt/raid";
# };
# }
# ];
# };
# };
# };
}; };
} }