fix: auto-installer works fully offline

This commit is contained in:
UGA Innovation Factory
2026-01-05 15:40:05 -05:00
parent 0b353a3ec8
commit d3a1665c75
3 changed files with 29 additions and 50 deletions

View File

@@ -18,14 +18,8 @@ let
hostName:
let
targetConfig = self.nixosConfigurations.${hostName}.config;
targetSystem = targetConfig.system.build.toplevel;
targetSystemBuild = targetConfig.system.build;
diskoScript = targetConfig.system.build.diskoScript;
# Build the closure export at build time (not runtime in ISO)
closureExport = pkgs.runCommand "closure-export-${hostName}" { } ''
mkdir -p $out
${pkgs.nix}/bin/nix-store --export $(${pkgs.nix}/bin/nix-store -qR ${targetSystem}) > $out/closure.nar
'';
in
nixpkgs.lib.nixosSystem {
inherit system;
@@ -33,9 +27,8 @@ let
inherit
inputs
hostName
targetSystem
targetSystemBuild
diskoScript
closureExport
;
hostPlatform = system;
};