{ disko.devices = { disk = { emmc = { device = "/dev/disk/by-id/nvme-eui.000000000000000100a07521334683d6"; type = "disk"; content = { type = "gpt"; partitions = { ESP = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = ["umask=0077"]; }; }; luks = { size = "100%"; content = { type = "luks"; name = "crypted"; # disable settings.keyFile if you want to use interactive password entry passwordFile = "/tmp/secret.key"; # Interactive content = { type = "btrfs"; extraArgs = ["-L" "nixos" "-f"]; subvolumes = { "/root" = { mountpoint = "/"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/home" = { mountpoint = "/home"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/nix" = { mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/swap" = { mountpoint = "/.swapvol"; swap.swapfile.size = "16G"; priority = 0; }; }; }; }; }; }; }; }; }; }; }