set microvm.vcpu

This commit is contained in:
Astro 2022-06-19 03:05:53 +02:00
parent 2b38d93445
commit 84d1789020
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ let
deployCommand = "${pkgs.systemd}/bin/systemctl start deploy-c3d2-web.service"; deployCommand = "${pkgs.systemd}/bin/systemctl start deploy-c3d2-web.service";
in in
{ {
microvm.vcpu = 8;
c3d2.deployment = { c3d2.deployment = {
server = "server10"; server = "server10";
mounts = [ "etc" "home" "var"]; mounts = [ "etc" "home" "var"];

View File

@ -67,6 +67,7 @@ in
microvm = { microvm = {
hypervisor = lib.mkDefault "cloud-hypervisor"; hypervisor = lib.mkDefault "cloud-hypervisor";
mem = lib.mkDefault 512; mem = lib.mkDefault 512;
vcpu = lib.mkDefault 4;
interfaces = lib.mkIf config.c3d2.deployment.autoNetSetup ( interfaces = lib.mkIf config.c3d2.deployment.autoNetSetup (
map (net: { map (net: {