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.
This commit is contained in:
UGA Innovation Factory
2026-01-05 15:56:27 -05:00
parent 30c2146687
commit 2f2a305df4
2 changed files with 17 additions and 15 deletions

View File

@@ -20,12 +20,6 @@ let
targetConfig = self.nixosConfigurations.${hostName}.config;
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;
@@ -35,7 +29,6 @@ let
hostName
targetSystemBuild
diskoScript
closureExport
;
hostPlatform = system;
};