2014-05-14 18:04:40 +01:00
|
|
|
let
|
2016-02-28 03:10:59 +00:00
|
|
|
mkOpts = prio: sys: virt: swvirt: hwvirt:
|
2014-05-14 18:04:40 +01: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 18:04:40 +01: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 04:28:32 +01:00
|
|
|
}
|