# other examples, see https://github.com/nix-community/disko/blob/master/example/ { disko.devices = { disk = { main = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { ESP = { size = "500M"; type = "EF00"; label = "boot"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; luks = { size = "100%"; label = "luks"; content = { type = "luks"; name = "crypted"; settings.allowDiscards = true; # Enable SSD TRIM support content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; }; }; }; }; }; }; }