error: … while calling the 'head' builtin at «github:NixOS/nixpkgs/e52c192be9d7b2c4bd4aed326c8731b35f8bb75c?narHash=sha256-D5jO0ME1lA9bDHnd5kVawBwItG/N4oZr3FlXmMzLec8%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/e52c192be9d7b2c4bd4aed326c8731b35f8bb75c?narHash=sha256-D5jO0ME1lA9bDHnd5kVawBwItG/N4oZr3FlXmMzLec8%3D»/lib/modules.nix:1310:5: 1309| 1310| optionalValue = if isDefined then { value = mergedValue; } else { }; | ^ 1311| }; … while evaluating definitions from `/nix/store/z8f38vkjg0rkd82j1cc10nrv1fwjz9cf-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").