modules/cluster/deployment: make microvm.hypervisor configurable

as requested by marenz
This commit is contained in:
Astro 2022-12-04 21:32:16 +01:00
parent cc63c41ba0
commit 1ef51c1d32
2 changed files with 11 additions and 2 deletions

View File

@ -10,6 +10,16 @@
type = types.int;
default = 512;
};
hypervisor = mkOption {
type = types.enum [
"qemu"
"cloud-hypervisor"
"firecracker"
"crosvm"
"kvmtool"
];
default = "cloud-hypervisor";
};
networks = mkOption {
type = with types; listOf str;
default = builtins.attrNames (

View File

@ -30,8 +30,7 @@ let
in
{
microvm = {
hypervisor = "cloud-hypervisor";
inherit (config.deployment) mem vcpu;
inherit (config.deployment) mem vcpu hypervisor;
preStart = ''
# Discard old writable store overlay