Unverified Commit 0234fbb0 authored by Victor Fuentes's avatar Victor Fuentes
Browse files

nixos/google-compute-image: add buildMemSize option

parent f2638ab0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -57,6 +57,12 @@ in
      '';
    };

    virtualisation.googleComputeImage.buildMemSize = mkOption {
      type = types.int;
      default = 1024;
      description = "Memory size (in MiB) for the temporary VM used to build the image.";
    };

    virtualisation.googleComputeImage.contents = mkOption {
      type = with types; listOf attrs;
      default = [ ];
@@ -129,6 +135,7 @@ in
      inherit (cfg) contents;
      partitionTableType = if cfg.efi then "efi" else "legacy";
      inherit (config.virtualisation) diskSize;
      memSize = cfg.buildMemSize;
      inherit config lib pkgs;
    };