diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2024-01-12 20:25:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 20:25:26 +0100 |
commit | f520eb3f0c0717c5424d46281af9d78cb5a1ffa0 (patch) | |
tree | 78869a6178c215f45de97c4bf1bae0f9bd167839 /nixos/maintainers | |
parent | 63ef5de3901966cf8f8717781325b4eb15cd4a94 (diff) | |
parent | eac98ed50efe959941340505aedb0020f4fad896 (diff) |
Merge pull request #263658 from siriobalmelli-foss/sb/zfs-image
openstack-image-zfs and make-single-disk-zfs-image: optionally specify qemu instance memory
Diffstat (limited to 'nixos/maintainers')
-rw-r--r-- | nixos/maintainers/scripts/openstack/openstack-image-zfs.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/maintainers/scripts/openstack/openstack-image-zfs.nix b/nixos/maintainers/scripts/openstack/openstack-image-zfs.nix index 936dcee12949e..60f0535854dd5 100644 --- a/nixos/maintainers/scripts/openstack/openstack-image-zfs.nix +++ b/nixos/maintainers/scripts/openstack/openstack-image-zfs.nix @@ -20,6 +20,12 @@ in default = "nixos-openstack-image-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}"; }; + ramMB = mkOption { + type = types.int; + default = 1024; + description = lib.mdDoc "RAM allocation for build VM"; + }; + sizeMB = mkOption { type = types.int; default = 8192; @@ -64,7 +70,7 @@ in includeChannel = copyChannel; bootSize = 1000; - + memSize = cfg.ramMB; rootSize = cfg.sizeMB; rootPoolProperties = { ashift = 12; |