2014-05-14 21:04:40 +04:00
|
|
|
let
|
2016-02-28 06:10:59 +03:00
|
|
|
mkOpts = prio: sys: virt: swvirt: hwvirt:
|
2014-05-14 21:04:40 +04:00
|
|
|
{ config.priority = prio;
|
|
|
|
config.system = sys;
|
|
|
|
config.virtualisationConfig = virt;
|
|
|
|
config.hardwareVirtualisation = hwvirt;
|
|
|
|
config.virtualisationSoftware = swvirt;
|
2016-02-28 06:10:59 +03:00
|
|
|
};
|
2014-05-14 21:04:40 +04:00
|
|
|
in
|
|
|
|
{
|
2016-02-28 06:10:59 +03:00
|
|
|
desktop =
|
|
|
|
mkOpts "performance" "desktop" "host" "kvm" true;
|
|
|
|
server =
|
|
|
|
mkOpts "security" "server" "host" "kvm" true;
|
|
|
|
server_xen =
|
|
|
|
mkOpts "security" "server" "guest" "xen" true;
|
2014-06-23 07:28:32 +04:00
|
|
|
}
|