From fc0971f4364fa7f8bfbae3bb789fb7e22128a7c7 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 15 Jun 2022 13:13:31 +0200 Subject: nixos-generate-config: nixpkgs.system -> nixpkgs.hostPlatform --- nixos/modules/installer/tools/nixos-generate-config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules') diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 5674bf348d101..65b5c0331f42d 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"; -- cgit 1.4.1