Installed Vmware-Workstation

When I try to enable virtualisation.vmware.host.enable = true; I get the following error when trying to rebuild:
error: builder for ‘/nix/store/zl52gpwzb5rix1f6s8bfh6m5qillnil3-source.drv’ failed with exit code 1
error:
… while calling the ‘head’ builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1:35741:
… while evaluating the attribute ‘value’
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:33591:
… while evaluating the option `system.build.toplevel’:

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix':

   … while evaluating the option `system.systemBuilderArgs':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activatable-system.nix':

   … while evaluating the option `system.activationScripts.etc.text':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc-activation.nix':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':

   … while evaluating the option `environment.etc."vmware/config".source':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':

   … while evaluating the option `environment.etc."vmware/config".text':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/virtualisation/vmware-host.nix':

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: 1 dependencies of derivation '/nix/store/hbvmc9nfy75pz9mzx1mc54ag18ai9qfi-vmware-workstation-17.6.1.drv' failed to build

When I try to add virtualisation.vmware.host.package = “pkgs.vmware-workstation”; I get the following error:
error:
… while calling the ‘head’ builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1:35741:
… while evaluating the attribute ‘value’
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:33591:
… while evaluating the option `system.build.toplevel’:

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix':

   … while evaluating the option `warnings':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix':

   … while evaluating the option `systemd.services.cups.serviceConfig':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix':

   … while evaluating the option `systemd.services.cups.preStart':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/printing/cupsd.nix':

   … while evaluating the option `services.printing.drivers':

   … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/virtualisation/vmware-host.nix':

   … while evaluating the option `virtualisation.vmware.host.package':

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: A definition for option `virtualisation.vmware.host.package' is not of type `package'. Definition values:
   - In `/etc/nixos/configuration.nix': "pkgs.vmware-workstation"

I would like to know what I am doing wrong or how to fix this. Thank you.