mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
make-disk-image: make memSize configurable per disk
Sometimes the VM builder can run out of memory and fail to allocate memory when installing the system toplevel
This commit is contained in:
1 parent
169e99dc3d
commit
bd8fbc3f27
2 files changed
+8
-1
No files matched your search
@@ -65,7 +65,7 @@ in
|
|||||||
{
|
{
|
||||||
buildInputs = dependencies;
|
buildInputs = dependencies;
|
||||||
inherit preVM postVM QEMU_OPTS;
|
inherit preVM postVM QEMU_OPTS;
|
||||||
memSize = 1024;
|
memSize = nixosConfig.config.disko.memSize;
|
||||||
}
|
}
|
||||||
(partitioner + installer));
|
(partitioner + installer));
|
||||||
impure = diskoLib.writeCheckedBash { inherit checked pkgs; } name ''
|
impure = diskoLib.writeCheckedBash { inherit checked pkgs; } name ''
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.disko = {
|
options.disko = {
|
||||||
|
memSize = lib.mkOption {
|
||||||
|
type = lib.types.int;
|
||||||
|
description = ''
|
||||||
|
size of the memory passed to runInLinuxVM, in megabytes
|
||||||
|
'';
|
||||||
|
default = 1024;
|
||||||
|
};
|
||||||
devices = lib.mkOption {
|
devices = lib.mkOption {
|
||||||
type = diskoLib.toplevel;
|
type = diskoLib.toplevel;
|
||||||
default = { };
|
default = { };
|
||||||
|
|||||||
Reference in new issue
Block a user