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