fix: auto-installer works fully offline
All checks were successful
CI / Format Check (push) Successful in 2s
CI / Flake Check (push) Successful in 1m35s
CI / Evaluate Key Configurations (nix-builder) (push) Successful in 10s
CI / Evaluate Key Configurations (nix-desktop1) (push) Successful in 12s
CI / Evaluate Key Configurations (nix-laptop1) (push) Successful in 8s
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Successful in 17s
CI / Evaluate Artifacts (lxc-nix-builder) (push) Successful in 11s
All checks were successful
CI / Format Check (push) Successful in 2s
CI / Flake Check (push) Successful in 1m35s
CI / Evaluate Key Configurations (nix-builder) (push) Successful in 10s
CI / Evaluate Key Configurations (nix-desktop1) (push) Successful in 12s
CI / Evaluate Key Configurations (nix-laptop1) (push) Successful in 8s
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Successful in 17s
CI / Evaluate Artifacts (lxc-nix-builder) (push) Successful in 11s
chore: run nix fmt refactor: change usage of targetSystem to targetSystemBuild.toplevel chore: run nix fmt refactor: change usage of targetSystem to targetSystemBuild.toplevel
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user