forked from mirrors/nixpkgs
nixos/libvirt: remove 'virtualisation.libvirtd.enableKVM' option
This commit is contained in:
parent
a52aa6aafb
commit
363cdde475
|
@ -82,6 +82,10 @@ with lib;
|
|||
(mkRenamedOptionModule [ "services" "virtualboxHost" "addNetworkInterface" ] [ "virtualisation" "virtualbox" "host" "addNetworkInterface" ])
|
||||
(mkRenamedOptionModule [ "services" "virtualboxHost" "enableHardening" ] [ "virtualisation" "virtualbox" "host" "enableHardening" ])
|
||||
|
||||
# libvirtd
|
||||
(mkRemovedOptionModule [ "virtualisation" "libvirtd" "enableKVM" ]
|
||||
"Set the option `virtualisation.libvirtd.qemuPackage' instead.")
|
||||
|
||||
# Tarsnap
|
||||
(mkRenamedOptionModule [ "services" "tarsnap" "config" ] [ "services" "tarsnap" "archives" ])
|
||||
|
||||
|
|
|
@ -37,20 +37,13 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.enableKVM = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
This option disables support for non-KVM guests in libvirtd (e.g. aarch64 on x86).
|
||||
KVM is available even if this setting is false.
|
||||
'';
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.qemuPackage = mkOption {
|
||||
type = types.package;
|
||||
default = if cfg.enableKVM then pkgs.qemu_kvm else pkgs.qemu;
|
||||
default = pkgs.qemu;
|
||||
description = ''
|
||||
Qemu package to use with libvirt
|
||||
Qemu package to use with libvirt.
|
||||
`pkgs.qemu` can emulate alien architectures (e.g. aarch64 on x86)
|
||||
`pkgs.qemu_kvm` saves disk space allowing to emulate only host architectures.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue