{ lib, ... }: { disko.devices = { disk = { main = { type = "disk"; device = "TARGET_DISK"; content = { type = "gpt"; partitions = { ESP = { size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; luks = { size = "100%"; content = { type = "luks"; name = "crypted"; extraOpenArgs = [ ]; settings = { allowDiscards = true; }; content = { type = "lvm_pv"; vg = "pool"; }; }; }; }; }; }; }; lvm_vg = { pool = { type = "lvm_vg"; lvs = { root = { size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; mountOptions = [ "defaults" ]; }; }; home = { size = "10M"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/home"; }; }; raw = { size = "10M"; }; }; }; }; }; }