2014-05-14 17:04:40 +00:00
|
|
|
let
|
2016-02-28 03:10:59 +00:00
|
|
|
mkOpts = prio: sys: virt: swvirt: hwvirt:
|
2014-05-14 17:04:40 +00:00
|
|
|
{ config.priority = prio;
|
|
|
|
config.system = sys;
|
|
|
|
config.virtualisationConfig = virt;
|
|
|
|
config.hardwareVirtualisation = hwvirt;
|
|
|
|
config.virtualisationSoftware = swvirt;
|
2016-02-28 03:10:59 +00:00
|
|
|
};
|
2014-05-14 17:04:40 +00:00
|
|
|
in
|
|
|
|
{
|
2016-02-28 03:10:59 +00: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 03:28:32 +00:00
|
|
|
}
|