Merge pull request #243522 from NixOS/backport-242126-to-release-23.05

[Backport release-23.05] vmware-guest module: work under aarch64
This commit is contained in:
Nick Cao
2023-07-14 18:12:11 -06:00
committed by GitHub

View File

@@ -24,12 +24,12 @@ in
config = mkIf cfg.enable {
assertions = [ {
assertion = pkgs.stdenv.hostPlatform.isx86;
assertion = pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isAarch64;
message = "VMWare guest is not currently supported on ${pkgs.stdenv.hostPlatform.system}";
} ];
boot.initrd.availableKernelModules = [ "mptspi" ];
boot.initrd.kernelModules = [ "vmw_pvscsi" ];
boot.initrd.kernelModules = lib.optionals pkgs.stdenv.hostPlatform.isx86 [ "vmw_pvscsi" ];
environment.systemPackages = [ open-vm-tools ];