about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-07-14 19:51:14 +0200
committerGitHub <noreply@github.com>2023-07-14 19:51:14 +0200
commit75cfb4925a74900b0ab7636d605869806235ad0d (patch)
tree6da7722965eec83e9680ce34db8093a4c930fd40 /nixos
parentaf59b3fb98ba6c3868522a3bc1c13388c09163ab (diff)
parent1e16a937ca4c148841c15760ddc02f47ce487735 (diff)
Merge pull request #242126 from kjeremy/vmware-guest-aarch64
vmware-guest module: work under aarch64
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/vmware-guest.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/vmware-guest.nix b/nixos/modules/virtualisation/vmware-guest.nix
index b8f0a4cf668ef..6880a257c2be6 100644
--- a/nixos/modules/virtualisation/vmware-guest.nix
+++ b/nixos/modules/virtualisation/vmware-guest.nix
@@ -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 ];