only use kvm when configured
This commit is contained in:
parent
628b278309
commit
9a921d531a
@ -16,7 +16,10 @@ in {
|
|||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu = {
|
qemu = {
|
||||||
package = lib.mkIf cfg.kvm pkgs.qemu_kvm;
|
package =
|
||||||
|
if cfg.kvm
|
||||||
|
then pkgs.qemu_kvm
|
||||||
|
else config.virtualisation.libvirtd.qemu.package;
|
||||||
runAsRoot = true;
|
runAsRoot = true;
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
ovmf = {
|
ovmf = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user