fix: work on making the installer work offline

This commit is contained in:
UGA Innovation Factory
2026-01-05 11:58:38 -05:00
parent c2b5e4eafe
commit c6f4a39eee
4 changed files with 25 additions and 3 deletions

View File

@@ -13,6 +13,7 @@
...
}:
{
# Ensure the entire system closure and all dependencies are included in the ISO
environment.systemPackages = [
pkgs.git
pkgs.bashInteractive
@@ -20,6 +21,14 @@
targetSystem
];
# Explicitly include the system closure in the ISO image to prevent any need to build or fetch
isoImage.contents = [
{
source = targetSystem;
target = "/system";
}
];
nixpkgs.hostPlatform = hostPlatform;
systemd.services.auto-install = {
@@ -45,7 +54,13 @@
${diskoScript}
echo ">>> Running nixos-install..."
nixos-install --no-root-passwd --system ${targetSystem}
# Use only local store - don't fetch from binary cache or build
nixos-install \
--no-root-passwd \
--root /mnt \
--system ${targetSystem} \
--option substitute false \
--option build-use-sandbox false
echo ">>> Done. Rebooting."
systemctl reboot