nixos-generate-config: Fix generated hostPlatform.system

While the intent of the code was correct, the system string can not be used
in the substituteAll function.

See https://github.com/NixOS/nixpkgs/issues/237216
This commit is contained in:
Robert Hensing 2023-06-11 19:28:51 +02:00
parent 089f5788fb
commit 1350e522fa
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ sub debug {
# nixpkgs.system
push @attrs, "nixpkgs.hostPlatform = lib.mkDefault \"@system@\";";
push @attrs, "nixpkgs.hostPlatform = lib.mkDefault \"@hostPlatformSystem@\";";
my $cpuinfo = read_file "/proc/cpuinfo";