From 9e411e399242fba7ce8918e665f61d05a2767952 Mon Sep 17 00:00:00 2001 From: highghlow <132668972+highghlow@users.noreply.github.com> Date: Mon, 22 Jul 2024 17:36:59 +0300 Subject: [PATCH 1/2] Added vcpu_count the Windows template --- templates/domain/windows.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/domain/windows.nix b/templates/domain/windows.nix index 073a444..87f3399 100644 --- a/templates/domain/windows.nix +++ b/templates/domain/windows.nix @@ -11,6 +11,7 @@ stuff@{ packages, packages-ovmf, guest-install, ... }: , virtio_drive ? false , virtio_video ? true , install_virtio ? false +, vcpu_count ? 2 , ... }: let @@ -22,7 +23,7 @@ let in base // { - vcpu.count = 2; + vcpu.count = vcpu_count; os = base.os // { loader = From 3f5668e31ad198b856c22f58cdee927971007f2a Mon Sep 17 00:00:00 2001 From: highghlow <132668972+highghlow@users.noreply.github.com> Date: Mon, 22 Jul 2024 17:39:10 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 104ae4d..0351cd9 100644 --- a/README.md +++ b/README.md @@ -242,6 +242,7 @@ These are the arguments: * `name`: the libvirt name (string, required) * `uuid`: the libvirt identifier (UUID string, required) * `memory`: amount of RAM (set with `count` (integer) and `unit` (string) attributes, default `{ count = 4; unit = "GiB"; }`) +* `memory`: the number of virtual CPU (integer, default `2`) * `storage_vol`: source element or path to a QCOW2 volume for storage, or null (set, string or path, default `null`) * `install_vol`: source element or path to an ISO image for an inserted CDROM, or null (set, string or path, default `null`) * `nvram_path`: path to a file for storing NVRAM, this file will be created if missing (string or path, required)