{ disko.devices = { disk = { nvme0n1 = { type = "disk"; device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { ESP = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "defaults" ]; }; }; luks = { size = "600G"; content = { type = "luks"; name = "crypted"; # disable settings.keyFile if you want to use interactive password entry passwordFile = "/tmp/secret.key"; # Interactive settings = { allowDiscards = true; #keyFile = "/tmp/secret.key"; }; #additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; content = { type = "btrfs"; extraArgs = ["-f"]; subvolumes = { "@" = { mountpoint = "/"; mountOptions = ["compress=zstd" "noatime"]; }; "@home" = { mountpoint = "/home"; mountOptions = ["compress=zstd" "noatime"]; }; "@nix" = { mountpoint = "/nix"; mountOptions = ["compress=zstd" "noatime"]; }; "@persist" = { mountpoint = "/persist"; mountOptions = ["compress=zstd" "noatime"]; }; "@snapshots" = {}; "@swap" = { mountpoint = "/.swapvol"; swap.swapfile.size = "8G"; }; }; }; }; }; }; }; }; }; }; }