diff options
author | Clemens Fruhwirth <clemens@endorphin.org> | 2017-05-01 17:21:26 +0200 |
---|---|---|
committer | Clemens Fruhwirth <clemens@endorphin.org> | 2017-05-01 18:36:13 +0200 |
commit | df5d588f13674bbe4be63a05e533c8303ea5a465 (patch) | |
tree | 290a407546f55f30e2cb8903d386ae61181c526c /nixos/modules/virtualisation/libvirtd.nix | |
parent | 7f3b857d0d08c5e7d8d0ecdb2a53f06cc48a9cdf (diff) |
Introduce virtualisation.libvirtd.qemuOvmf.
Diffstat (limited to 'nixos/modules/virtualisation/libvirtd.nix')
-rw-r--r-- | nixos/modules/virtualisation/libvirtd.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index c0cebaddec8d..58581eed74a1 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -14,6 +14,9 @@ let ${cfg.extraConfig} ''; qemuConfigFile = pkgs.writeText "qemu.conf" '' + ${optionalString cfg.qemuOvmf '' + nvram = ["${pkgs.OVMF}/FV/OVMF_CODE.fd:${pkgs.OVMF}/FV/OVMF_VARS.fd"] + ''} ${cfg.qemuVerbatimConfig} ''; @@ -63,6 +66,15 @@ in { ''; }; + virtualisation.libvirtd.qemuOvmf = mkOption { + type = types.bool; + default = true; + description = '' + Allows libvirtd to take advantage of OVMF when creating new + QEMU VMs with UEFI boot. + ''; + }; + virtualisation.libvirtd.extraOptions = mkOption { type = types.listOf types.str; default = [ ]; |