diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 5674bf348d10..65b5c0331f42 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -90,7 +90,7 @@ if ($status != 0 || join("", @systemLines) =~ /error/) { die "Failed to retrieve current system type from nix.\n"; } my $system = substr(@systemLines[0], 0, -1); -push @attrs, "nixpkgs.system = lib.mkDefault $system;"; +push @attrs, "nixpkgs.hostPlatform = lib.mkDefault $system;"; my $cpuinfo = read_file "/proc/cpuinfo";