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;
|
type = types.int;
|
||||||
default = 512;
|
default = 512;
|
||||||
};
|
};
|
||||||
|
hypervisor = mkOption {
|
||||||
|
type = types.enum [
|
||||||
|
"qemu"
|
||||||
|
"cloud-hypervisor"
|
||||||
|
"firecracker"
|
||||||
|
"crosvm"
|
||||||
|
"kvmtool"
|
||||||
|
];
|
||||||
|
default = "cloud-hypervisor";
|
||||||
|
};
|
||||||
networks = mkOption {
|
networks = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = builtins.attrNames (
|
default = builtins.attrNames (
|
||||||
|
|
|
@ -30,8 +30,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
microvm = {
|
microvm = {
|
||||||
hypervisor = "cloud-hypervisor";
|
inherit (config.deployment) mem vcpu hypervisor;
|
||||||
inherit (config.deployment) mem vcpu;
|
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
# Discard old writable store overlay
|
# Discard old writable store overlay
|
||||||
|
|
Loading…
Reference in New Issue