error: … while calling the 'head' builtin at «github:NixOS/nixpkgs/9f11f828c213641c2369a9f1fa31fe31557e3156?narHash=sha256-iUuzKQcyXvopYDDzFpMK5eQKP3WIJExYny2kJtbgUcE%3D»/lib/attrsets.nix:1714:13: 1713| if length values == 1 || pred here (elemAt values 1) (head values) then 1714| head values | ^ 1715| else … while evaluating the attribute 'optionalValue.value' at «github:NixOS/nixpkgs/9f11f828c213641c2369a9f1fa31fe31557e3156?narHash=sha256-iUuzKQcyXvopYDDzFpMK5eQKP3WIJExYny2kJtbgUcE%3D»/lib/modules.nix:1310:5: 1309| 1310| optionalValue = if isDefined then { value = mergedValue; } else { }; | ^ 1311| }; … while evaluating definitions from `/nix/store/a6q7ydqx9v60jhnvsg2p3j200dpdr9hq-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").