1{
2 disko.devices = {
3 disk = {
4 main = {
5 type = "disk";
6 device = "/dev/vda";
7 content = {
8 type = "gpt";
9 partitions = {
10 boot = {
11 priority = 1;
12 name = "boot";
13 size = "1M";
14 type = "EF02";
15 };
16 esp = {
17 priority = 2;
18 name = "ESP";
19 size = "500M";
20 type = "EF00";
21 content = {
22 type = "filesystem";
23 format = "vfat";
24 mountpoint = "/boot";
25 mountOptions = [ "umask=0077" ];
26 };
27 };
28 root = {
29 priority = 3;
30 end = "-8G";
31 content = {
32 type = "btrfs";
33 extraArgs = [ "-f" ]; # Override existing partition
34 mountpoint = "/";
35 mountOptions = [
36 "compress-force=zstd:3"
37 "noatime"
38 ];
39 };
40 };
41 plainSwap = {
42 priority = 4;
43 size = "100%";
44 content = {
45 type = "swap";
46 discardPolicy = "both";
47 };
48 };
49 };
50 };
51 };
52 };
53 };
54}