diff --git a/2configs/fs/disko/single-disk-ext4.nix b/2configs/fs/disko/single-disk-ext4.nix new file mode 100644 index 0000000..4e3e7ac --- /dev/null +++ b/2configs/fs/disko/single-disk-ext4.nix @@ -0,0 +1,38 @@ +{ disk ? "/dev/sda", ... }: { + disko.devices = { + disk = { + disk1 = { + device = disk; + type = "disk"; + content = { + type = "table"; + format = "gpt"; + partitions = [ + { + name = "ESP"; + start = "1MiB"; + end = "500MiB"; + bootable = true; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + } + { + name = "root"; + start = "500MiB"; + end = "100%"; + part-type = "primary"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + } + ]; + }; + }; + }; + }; +}