Merge remote-tracking branch 'origin/main'

This commit is contained in:
UGA Innovation Factory
2026-01-05 15:54:33 -05:00
2 changed files with 15 additions and 2 deletions

View File

@@ -20,6 +20,12 @@ 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;
@@ -29,6 +35,7 @@ let
hostName
targetSystemBuild
diskoScript
closureExport
;
hostPlatform = system;
};