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";
in
{
microvm.vcpu = 8;
c3d2.deployment = {
server = "server10";
mounts = [ "etc" "home" "var"];

View File

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