summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2021-11-20 01:14:44 +0200
committerGitHub <noreply@github.com>2021-11-20 01:14:44 +0200
commitdd4ce550b3e0195e16b4b93e096e3d4b3a6af425 (patch)
tree25384d423b38f1c0f79b1f7cea072abc878b55ac /nixos/modules
parentc03139da1d1cfddad0aa1b566cf5d5ddb8f03f5f (diff)
parenta96a6e751593609014b854ad40e2836c03c8a887 (diff)
downloadnixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.tar
nixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.tar.gz
nixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.tar.bz2
nixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.tar.lz
nixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.tar.xz
nixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.tar.zst
nixpkgs-dd4ce550b3e0195e16b4b93e096e3d4b3a6af425.zip
Merge pull request #146456 from Artturin/misc-updates1
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/virtualisation/qemu-vm.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix
index 67fde55faab..0c2782d3e02 100644
--- a/nixos/modules/virtualisation/qemu-vm.nix
+++ b/nixos/modules/virtualisation/qemu-vm.nix
@@ -845,7 +845,7 @@ in
         ''-append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo}/registration ${consoles} $QEMU_KERNEL_PARAMS"''
       ])
       (mkIf cfg.useEFIBoot [
-        "-drive if=pflash,format=raw,unit=0,readonly,file=${efiFirmware}"
+        "-drive if=pflash,format=raw,unit=0,readonly=on,file=${efiFirmware}"
         "-drive if=pflash,format=raw,unit=1,file=$NIX_EFI_VARS"
       ])
       (mkIf (cfg.bios != null) [