fix: ensure system closure is installed for derivations needed by the installer

This commit is contained in:
UGA Innovation Factory
2026-01-05 12:16:51 -05:00
parent c6f4a39eee
commit 4c218190c3

View File

@@ -53,14 +53,18 @@
echo ">>> Running disko script..."
${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..."
# Use only local store - don't fetch from binary cache or build
# Install with pre-built closure already in store
nixos-install \
--no-root-passwd \
--root /mnt \
--system ${targetSystem} \
--option substitute false \
--option build-use-sandbox false
--option substitute false
echo ">>> Done. Rebooting."
systemctl reboot