{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { ESP = { size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; luks = { size = "75%"; content = { type = "luks"; name = "crypted"; settings = { allowDiscards = true; }; content = { type = "btrfs"; extraArgs = [ "-f" ]; subvolumes = { "@" = { mountpoint = "/"; mountOptions = [ "compress=zstd:1" "noatime" ]; }; "@home" = { mountpoint = "/home"; mountOptions = [ "compress=zstd:1" "noatime" ]; }; "@nix" = { mountpoint = "/nix"; mountOptions = [ "compress=zstd:1" "noatime" ]; }; "@log" = { mountpoint = "/var/log"; mountOptions = [ "compress=zstd:1" "noatime" ]; }; "@swap" = { mountpoint = "/.swapvol"; mountOptions = [ "nodatacow" "noatime" ]; }; }; }; }; }; shared = { size = "100%"; content = { type = "filesystem"; format = "exfat"; mountpoint = "/shared"; }; }; }; }; }; }; }; }