Skip to content

Commit a58e3a1

Browse files
committed
make-disk-image: use nocache for smaller memory footprint
1 parent 878ec37 commit a58e3a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/make-disk-image.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ let
9595
util-linux
9696
findutils
9797
kmod
98+
nocache
9899
]
99100
++ cfg.extraDependencies;
100101
preVM = ''
@@ -165,7 +166,7 @@ let
165166
P=${toString cfg.copyNixStoreThreads}
166167
''
167168
}
168-
xargs -P "$P" -I {} cp --recursive {} "$rootMountPoint"/nix/store < ${closureInfo}/store-paths
169+
xargs -P "$P" -I {} nocache cp --recursive {} "$rootMountPoint"/nix/store < ${closureInfo}/store-paths
169170
170171
${systemToInstall.config.system.build.nixos-install}/bin/nixos-install --root "$rootMountPoint" --system ${systemToInstall.config.system.build.toplevel} --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
171172
umount -Rv "$rootMountPoint"

0 commit comments

Comments
 (0)