diff --git a/installer/nixos-hardware-scan.pl b/installer/nixos-hardware-scan.pl index e96b5b44ee4..ae9d53bbf49 100644 --- a/installer/nixos-hardware-scan.pl +++ b/installer/nixos-hardware-scan.pl @@ -113,6 +113,10 @@ sub pciCheck { $device eq "0x7125" || $device eq "0x7128" ); + + # Assume that all NVIDIA cards are supported by the NVIDIA driver. + # There may be exceptions (e.g. old cards). + $videoDriver = "nvidia" if $vendor eq "0x10de" && $class =~ /^0x03/; } foreach my $path (glob "/sys/bus/pci/devices/*") {