<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Translations%3ANVIDIA%2F23%2Fen</id>
	<title>Translations:NVIDIA/23/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Translations%3ANVIDIA%2F23%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Translations:NVIDIA/23/en&amp;action=history"/>
	<updated>2026-06-23T00:59:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Translations:NVIDIA/23/en&amp;diff=31802&amp;oldid=prev</id>
		<title>FuzzyBot: Importing a new version from external source</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Translations:NVIDIA/23/en&amp;diff=31802&amp;oldid=prev"/>
		<updated>2026-05-14T10:48:04Z</updated>

		<summary type="html">&lt;p&gt;Importing a new version from external source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;All PRIME configurations require setting the PCI bus IDs of the two GPUs. One easy way to do find their IDs is by running &amp;lt;code&amp;gt;lspci&amp;lt;/code&amp;gt; from the &amp;lt;code&amp;gt;pciutils&amp;lt;/code&amp;gt; package, and then finding devices that are classified as VGA controllers. After double checking that the listed devices are indeed your integrated and dedicated GPUs, you can then find the PCI IDs at the beginning of each line. Exact results may vary, but an example output might look like:&amp;lt;syntaxhighlight lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ nix shell nixpkgs#pciutils -c lspci -D -d ::03xx&lt;br /&gt;
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)&lt;br /&gt;
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Before putting them into your configuration, however, &amp;#039;&amp;#039;&amp;#039;they must first be reformatted&amp;#039;&amp;#039;&amp;#039; — assuming the bus address is &amp;lt;code&amp;gt;&amp;lt;domain&amp;gt;:&amp;lt;bus&amp;gt;:&amp;lt;device&amp;gt;.&amp;lt;func&amp;gt;&amp;lt;/code&amp;gt;, convert all numbers from hexadecimal to decimal, then the formatted string is &amp;lt;code&amp;gt;PCI:&amp;lt;bus&amp;gt;@&amp;lt;domain&amp;gt;:&amp;lt;device&amp;gt;:&amp;lt;func&amp;gt;&amp;lt;/code&amp;gt;. They can be set under &amp;lt;code&amp;gt;intelBusId&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;nvidiaBusId&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;amdgpuBusId&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;hardware.nvidia.prime&amp;lt;/code&amp;gt;, depending on the manufacturer of the GPU:{{file|configuration.nix|nix|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  hardware.nvidia.prime = {&lt;br /&gt;
    intelBusId = &amp;quot;PCI:0@0:2:0&amp;quot;;&lt;br /&gt;
    nvidiaBusId = &amp;quot;PCI:1@0:0:0&amp;quot;;&lt;br /&gt;
    # amdgpuBusId = &amp;quot;PCI:5@0:0:0&amp;quot;; # If you have an AMD iGPU&lt;br /&gt;
  };&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>