fix: ensure system closure is installed for derivations needed by the installer
This commit is contained in:
@@ -53,14 +53,18 @@
|
|||||||
echo ">>> Running disko script..."
|
echo ">>> Running disko script..."
|
||||||
${diskoScript}
|
${diskoScript}
|
||||||
|
|
||||||
|
echo ">>> Copying system closure to target..."
|
||||||
|
# Copy the entire system closure without substitution
|
||||||
|
nix-store --store /mnt --load-db < <(nix-store --dump-db)
|
||||||
|
nix-copy-closure --to /mnt ${targetSystem} 2>/dev/null || true
|
||||||
|
|
||||||
echo ">>> Running nixos-install..."
|
echo ">>> Running nixos-install..."
|
||||||
# Use only local store - don't fetch from binary cache or build
|
# Install with pre-built closure already in store
|
||||||
nixos-install \
|
nixos-install \
|
||||||
--no-root-passwd \
|
--no-root-passwd \
|
||||||
--root /mnt \
|
--root /mnt \
|
||||||
--system ${targetSystem} \
|
--system ${targetSystem} \
|
||||||
--option substitute false \
|
--option substitute false
|
||||||
--option build-use-sandbox false
|
|
||||||
|
|
||||||
echo ">>> Done. Rebooting."
|
echo ">>> Done. Rebooting."
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user