@@ -3,19 +3,17 @@
33with lib;
44
55let
6− cfg = config.services.vmwareGuest;
6+ cfg = config.virtualisation.vmware.guest;
77 open-vm-tools = if cfg.headless then pkgs.open-vm-tools-headless else pkgs.open-vm-tools;
88 xf86inputvmmouse = pkgs.xorg.xf86inputvmmouse;
99in
1010{
11− options = {
12− services.vmwareGuest = {
13− enable = mkEnableOption "VMWare Guest Support";
14− headless = mkOption {
15− type = types.bool;
16− default = false;
17− description = "Whether to disable X11-related features.";
18− };
11+ options.virtualisation.vmware.guest = {
12+ enable = mkEnableOption "VMWare Guest Support";
13+ headless = mkOption {
14+ type = types.bool;
15+ default = false;
16+ description = "Whether to disable X11-related features.";
1917 };
2018 };
2119
@@ -25,6 +23,8 @@ in
2523 message = "VMWare guest is not currently supported on ${pkgs.stdenv.system}";
2624 } ];
2725
26+ boot.initrd.kernelModules = [ "vmw_pvscsi" ];
27+
2828 environment.systemPackages = [ open-vm-tools ];
2929
3030 systemd.services.vmware =