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:
parent
262103717e
commit
3bbe4c322a
@ -153,7 +153,7 @@ if [[ -z $system ]]; then
|
|||||||
else
|
else
|
||||||
echo "building the flake in $flake..."
|
echo "building the flake in $flake..."
|
||||||
nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.toplevel" \
|
nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.toplevel" \
|
||||||
--extra-substituters "$sub" "${verbosity[@]}" \
|
--store "$mountPoint" --extra-substituters "$sub" "${verbosity[@]}" \
|
||||||
"${extraBuildFlags[@]}" "${lockFlags[@]}" --out-link "$outLink"
|
"${extraBuildFlags[@]}" "${lockFlags[@]}" --out-link "$outLink"
|
||||||
fi
|
fi
|
||||||
system=$(readlink -f "$outLink")
|
system=$(readlink -f "$outLink")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user