<?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%2F27%2Fen</id>
	<title>Translations:NVIDIA/27/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%2F27%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Translations:NVIDIA/27/en&amp;action=history"/>
	<updated>2026-06-23T00:59:21Z</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/27/en&amp;diff=31806&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/27/en&amp;diff=31806&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;When you want to run a program on the dGPU, you only need to set a few environment variables for the driver to recognize that offload mode should be used. If &amp;lt;code&amp;gt;hardware.nvidia.prime.offload.enableOffloadCmd&amp;lt;/code&amp;gt; is set to true, NixOS will generate a wrapper script named &amp;lt;code&amp;gt;nvidia-offload&amp;lt;/code&amp;gt; that sets the right variables for you:{{file|nvidia-offload|bash|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
export __NV_PRIME_RENDER_OFFLOAD=1&lt;br /&gt;
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0&lt;br /&gt;
export __GLX_VENDOR_LIBRARY_NAME=nvidia&lt;br /&gt;
export __VK_LAYER_NV_optimus=NVIDIA_only&lt;br /&gt;
exec &amp;quot;$@&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}If everything is configured correctly, then running a program like &amp;lt;code&amp;gt;glxgears&amp;lt;/code&amp;gt; should use the iGPU, while running &amp;lt;code&amp;gt;nvidia-offload glxgears&amp;lt;/code&amp;gt; should only use the dGPU.&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>