8 Commits

Author SHA1 Message Date
UGA Innovation Factory
2f2a305df4 Revert "fix: build closure in build-step instead of on iso"
Some checks failed
CI / Flake Check (push) Has been cancelled
CI / Evaluate Key Configurations (nix-builder) (push) Has been cancelled
CI / Evaluate Key Configurations (nix-desktop1) (push) Has been cancelled
CI / Evaluate Key Configurations (nix-laptop1) (push) Has been cancelled
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Has been cancelled
CI / Evaluate Artifacts (lxc-nix-builder) (push) Has been cancelled
CI / Format Check (push) Has been cancelled
This reverts commit b23525df78.
2026-01-05 15:56:27 -05:00
UGA Innovation Factory
30c2146687 Merge remote-tracking branch 'origin/main' 2026-01-05 15:54:33 -05:00
UGA Innovation Factory
ccd5adc6c7 Merge branch 'offline-installer' 2026-01-05 15:49:19 -05:00
Hunter
5777be80ac Merge branch 'offline-installer'
Some checks failed
CI / Flake Check (push) Has been cancelled
CI / Evaluate Key Configurations (nix-builder) (push) Has been cancelled
CI / Evaluate Key Configurations (nix-desktop1) (push) Has been cancelled
CI / Evaluate Key Configurations (nix-laptop1) (push) Has been cancelled
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Has been cancelled
CI / Evaluate Artifacts (lxc-nix-builder) (push) Has been cancelled
CI / Format Check (push) Has been cancelled
2026-01-05 15:43:28 -05:00
UGA Innovation Factory
d3a1665c75 fix: auto-installer works fully offline 2026-01-05 15:41:12 -05:00
UGA Innovation Factory
0b353a3ec8 fix: work on making the installer work offline
fix: ensure system closure is installed for derivations needed by the installer

fix: build closure in build-step instead of on iso
2026-01-05 15:40:49 -05:00
UGA Innovation Factory
b23525df78 fix: build closure in build-step instead of on iso 2026-01-05 12:29:32 -05:00
UGA Innovation Factory
4c218190c3 fix: ensure system closure is installed for derivations needed by the installer 2026-01-05 12:16:51 -05:00
3 changed files with 38 additions and 19 deletions

24
flake.lock generated
View File

@@ -318,11 +318,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1767024057, "lastModified": 1767619900,
"narHash": "sha256-B1aycRjMRvb6QOGbnqDhiDzZwMebj5jxZ5qyJzaKvpI=", "narHash": "sha256-KpoCBPvwHz3gAQtIUkohE2InRBFK3r0/FM6z5SPWfvM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "34578a2fdfce4257ce5f5baf6e7efbd4e4e252b1", "rev": "6bd04da47cfb48dfd15eabf08364b78ad894f5b2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -464,11 +464,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1766568855, "lastModified": 1767185284,
"narHash": "sha256-UXVtN77D7pzKmzOotFTStgZBqpOcf8cO95FcupWp4Zo=", "narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "c5db9569ac9cc70929c268ac461f4003e3e5ca80", "rev": "40b1a28dce561bea34858287fbb23052c3ee63fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -518,11 +518,11 @@
}, },
"nixpkgs-old-kernel": { "nixpkgs-old-kernel": {
"locked": { "locked": {
"lastModified": 1766687554, "lastModified": 1767051569,
"narHash": "sha256-DegN7KD/EtFSKXf2jvqL6lvev6GlfAAatYBcRC8goEo=", "narHash": "sha256-0MnuWoN+n1UYaGBIpqpPs9I9ZHW4kynits4mrnh1Pk4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fd0ca39c92fdb4012ed8d60e1683c26fddadd136", "rev": "40ee5e1944bebdd128f9fbada44faefddfde29bd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -534,11 +534,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1766885793, "lastModified": 1767480499,
"narHash": "sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0=", "narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9ef261221d1e72399f2036786498d78c38185c46", "rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -18,7 +18,7 @@ let
hostName: hostName:
let let
targetConfig = self.nixosConfigurations.${hostName}.config; targetConfig = self.nixosConfigurations.${hostName}.config;
targetSystem = targetConfig.system.build.toplevel; targetSystemBuild = targetConfig.system.build;
diskoScript = targetConfig.system.build.diskoScript; diskoScript = targetConfig.system.build.diskoScript;
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
@@ -27,7 +27,7 @@ let
inherit inherit
inputs inputs
hostName hostName
targetSystem targetSystemBuild
diskoScript diskoScript
; ;
hostPlatform = system; hostPlatform = system;

View File

@@ -8,7 +8,7 @@
inputs, inputs,
hostName, hostName,
hostPlatform, hostPlatform,
targetSystem, targetSystemBuild,
diskoScript, diskoScript,
... ...
}: }:
@@ -18,7 +18,7 @@
pkgs.git pkgs.git
pkgs.bashInteractive pkgs.bashInteractive
pkgs.curl pkgs.curl
targetSystem targetSystemBuild.toplevel
]; ];
# Explicitly include the system closure in the ISO image to prevent any need to build or fetch # Explicitly include the system closure in the ISO image to prevent any need to build or fetch
@@ -31,6 +31,12 @@
nixpkgs.hostPlatform = hostPlatform; nixpkgs.hostPlatform = hostPlatform;
nix.settings.experimental-features = "nix-command flakes";
system.extraDependencies = with targetSystemBuild; [ toplevel etc bootStage2 ];
isoImage.storeContents = [ targetSystemBuild.toplevel ];
systemd.services.auto-install = { systemd.services.auto-install = {
description = "Automatic NixOS install for ${hostName}"; description = "Automatic NixOS install for ${hostName}";
after = [ after = [
@@ -53,14 +59,27 @@
echo ">>> Running disko script..." echo ">>> Running disko script..."
${diskoScript} ${diskoScript}
<<<<<<< HEAD
echo ">>> Setting up NixOS..."
nixos-install \
--system ${targetSystemBuild.toplevel} \
--no-root-passwd \
--no-channel-copy \
--substituters ""
=======
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 >>>>>>> parent of b23525d (fix: build closure in build-step instead of on iso)
echo ">>> Done. Rebooting." echo ">>> Done. Rebooting."
systemctl reboot systemctl reboot