about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2024-02-16 08:27:37 -0500
committerShea Levy <shea@shealevy.com>2024-02-16 08:27:37 -0500
commit88a1349dfe606be461057b553087eb6b787b4118 (patch)
tree02e3036d3a7426413e93d44ac8bd2fd93d47aab3
parentf6fc51dc9ffa06e8a6f939e7ab52392824cbd79b (diff)
OVMF: Enable bundling the MS secure boot variables on aarch64.
-rw-r--r--pkgs/applications/virtualization/OVMF/default.nix4
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/virtualization/OVMF/default.nix b/pkgs/applications/virtualization/OVMF/default.nix
index 11f8c30375842..cff31a759a2b1 100644
--- a/pkgs/applications/virtualization/OVMF/default.nix
+++ b/pkgs/applications/virtualization/OVMF/default.nix
@@ -45,6 +45,10 @@ let
     aarch64 = {
       projectDscPath = "ArmVirtPkg/ArmVirtQemu.dsc";
       fwPrefix = "AAVMF";
+      msVarsArgs = {
+        flavor = "AAVMF";
+        archDir = "AARCH64";
+      };
     };
     riscv64 = {
       projectDscPath = "OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ef46c7bc19297..e76c96f82be11 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -26904,7 +26904,7 @@ with pkgs;
     httpSupport = true;
     tpmSupport = true;
     tlsSupport = true;
-    msVarsTemplate = stdenv.isx86_64;
+    msVarsTemplate = stdenv.isx86_64 || stdenv.isAarch64;
   };
 
   ops = callPackage ../applications/virtualization/ops { };