{ lib, ... }: { disko.devices.disk.main = { device = "/dev/sda"; type = "disk"; content = { type = "gpt"; partitions = { ESP = { size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; content = { type = lib.mkForce "btrfs"; extraArgs = [ "-f" ]; subvolumes = { "root" = { mountpoint = lib.mkForce "/"; mountOptions = [ "compress=zstd:1" "discard=async" "noatime" ]; }; "nix" = { mountpoint = "/nix"; mountOptions = [ "compress=zstd:1" "discard=async" "nodev" "noatime" ]; }; "home" = { mountpoint = "/home"; mountOptions = [ "compress=zstd:1" "discard=async" "nosuid" "nodev" "noatime" ]; }; "log" = { mountpoint = "/var/log"; mountOptions = [ "compress=zstd:1" "discard=async" "nosuid" "nodev" "noatime" ]; }; "swap" = { mountpoint = "/.swapvol"; mountOptions = [ "compress=none" "discard=async" "nodatacow" "noatime" ]; }; }; }; }; }; }; }; }