nixos-install: use mountpoint as store

Otherwise, it's possible building a flake may cause the live CD to run
out of memory.
This commit is contained in:
Cole Helbling 2020-10-03 10:03:55 -07:00
parent 262103717e
commit 3bbe4c322a
No known key found for this signature in database
GPG Key ID: B37E0F2371016A4C

View File

@ -153,7 +153,7 @@ if [[ -z $system ]]; then
else
echo "building the flake in $flake..."
nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.toplevel" \
--extra-substituters "$sub" "${verbosity[@]}" \
--store "$mountPoint" --extra-substituters "$sub" "${verbosity[@]}" \
"${extraBuildFlags[@]}" "${lockFlags[@]}" --out-link "$outLink"
fi
system=$(readlink -f "$outLink")