modules/cluster/deployment: make microvm.hypervisor configurable
as requested by marenz
This commit is contained in:
parent
cc63c41ba0
commit
1ef51c1d32
|
@ -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 (
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue