nixos-generate-config: nixpkgs.system -> nixpkgs.hostPlatform

This commit is contained in:
Robert Hensing 2022-06-15 13:13:31 +02:00
parent c9fea8c03c
commit fc0971f436

View file

@ -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";