Merge pull request #25397 from clefru/qemu-OVMF-on-channels
Introduce virtualisation.libvirtd.qemuOvmf.
This commit is contained in:
commit
112b5556af
@ -14,6 +14,9 @@ let
|
|||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
qemuConfigFile = pkgs.writeText "qemu.conf" ''
|
qemuConfigFile = pkgs.writeText "qemu.conf" ''
|
||||||
|
${optionalString cfg.qemuOvmf ''
|
||||||
|
nvram = ["${pkgs.OVMF}/FV/OVMF_CODE.fd:${pkgs.OVMF}/FV/OVMF_VARS.fd"]
|
||||||
|
''}
|
||||||
${cfg.qemuVerbatimConfig}
|
${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 {
|
virtualisation.libvirtd.extraOptions = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
Loading…
Reference in New Issue
Block a user