mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
18 lines
479 B
Nix
18 lines
479 B
Nix
let
|
|
mkOpts = prio: sys: virt: swvirt: hwvirt:
|
|
{ config.priority = prio;
|
|
config.system = sys;
|
|
config.virtualisationConfig = virt;
|
|
config.hardwareVirtualisation = hwvirt;
|
|
config.virtualisationSoftware = swvirt;
|
|
};
|
|
in
|
|
{
|
|
desktop =
|
|
mkOpts "performance" "desktop" "host" "kvm" true;
|
|
server =
|
|
mkOpts "security" "server" "host" "kvm" true;
|
|
server_xen =
|
|
mkOpts "security" "server" "guest" "xen" true;
|
|
}
|