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

main
Robert Hensing 2 years ago
parent c9fea8c03c
commit fc0971f436
  1. 2
      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";

Loading…
Cancel
Save