From 7c5b11fd6026b90d707f7548b2be3bca4a79cdc1 Mon Sep 17 00:00:00 2001 From: codgician <15964984+codgician@users.noreply.github.com> Date: Sat, 21 Dec 2024 17:15:09 +0800 Subject: [PATCH] azure-image: allow user to customize guest memory size to prevent OOM during build --- nixos/modules/virtualisation/azure-image.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix index 252381d0f198bc..f5b6ce4771c008 100644 --- a/nixos/modules/virtualisation/azure-image.nix +++ b/nixos/modules/virtualisation/azure-image.nix @@ -91,6 +91,7 @@ in inherit (cfg) contents label; inherit (config.virtualisation) diskSize; + memSize = config.virtualisation.memorySize; inherit config lib pkgs; };