refac(examples): Denest the source

This commit is contained in:
goyalyashpal 2024-08-02 16:50:04 +00:00 committed by GitHub
parent 7e1b215a0a
commit 2b0e2d6d90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,40 +1,38 @@
{
disko.devices = {
disk = {
main = {
device = "/dev/sda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
disko.devices.disk.main = {
device = "/dev/sda";
type = "disk";
};
disko.devices.disk.main.content = {
type = "table";
format = "gpt";
};
disko.devices.disk.main.content.partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
}