error: … while calling the 'head' builtin at «github:NixOS/nixpkgs/3b32825de172d0bc85664f495edb096b10862524?narHash=sha256-2aZisVTVGSFEk3MYcOiWQp3zvwyzbqpktB69Rcfp150%3D»/lib/attrsets.nix:1719:13: 1718| if length values == 1 || pred here (elemAt values 1) (head values) then 1719| head values | ^ 1720| else … while evaluating the attribute 'optionalValue.value' at «github:NixOS/nixpkgs/3b32825de172d0bc85664f495edb096b10862524?narHash=sha256-2aZisVTVGSFEk3MYcOiWQp3zvwyzbqpktB69Rcfp150%3D»/lib/modules.nix:1312:5: 1311| 1312| optionalValue = if isDefined then { value = mergedValue; } else { }; | ^ 1313| }; … while evaluating definitions from `/nix/store/iwy5544glgbbvq6mykafrps845xcvh03-source/lib/make-disk-image.nix': (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: vmTools: the `kernel` argument (kernel-modules) has no `target` attribute, so the kernel image filename cannot be determined. If you are passing a module tree (e.g. from `pkgs.aggregateModules`) to make extra modules available, pass it via `kernelModules` instead and keep `kernel` pointing at a real kernel derivation. Alternatively, pass `kernelImage` explicitly with the path of the bootable image relative to the `kernel` derivation output (e.g. "bzImage" or "Image").