NVIDIA: Difference between revisions

Ind E (talk | contribs)
m fixed reverse sync mode labeled as sync mode in one place
Gerg-L (talk | contribs)
remove unneccessary option declarations, add note on disabling nouveau kernel modues
Line 13: Line 13:
}}{{Warning|If you use a laptop with both dedicated and integrated GPUs, remember to [[#Hybrid_graphics_with_PRIME|configure PRIME]] in order to make your dedicated NVIDIA GPU work properly with your integrated GPU. Your configuration '''might not work''' if you skip this step.}}{{file|configuration.nix|nix|<nowiki>
}}{{Warning|If you use a laptop with both dedicated and integrated GPUs, remember to [[#Hybrid_graphics_with_PRIME|configure PRIME]] in order to make your dedicated NVIDIA GPU work properly with your integrated GPU. Your configuration '''might not work''' if you skip this step.}}{{file|configuration.nix|nix|<nowiki>
{
{
   hardware.graphics = {
   hardware.graphics.enable = true;
    enable = true;
    extraPackages = with pkgs; [nvidia-vaapi-driver];
  };
 
   services.xserver.videoDrivers = [ "nvidia" ];
   services.xserver.videoDrivers = [ "nvidia" ];
   hardware.nvidia.open = true; # Set to false to use the proprietary kernel module
   hardware.nvidia.open = true; # see the note at the top of the page
}
}
</nowiki>}}
</nowiki>}}
Line 261: Line 257:


=== Nouveau ===
=== Nouveau ===
Nouveau can be disabled by blacklisting the <code>nouveau</code> kernel module:<syntaxhighlight lang="nix">
Nouveau can be disabled by blacklisting the <code>nouveau</code> kernel module:
 
Note: This is done by default when using proprietary drivers<syntaxhighlight lang="nix">
{  
{  
   boot.blacklistedKernelModules = [ "nouveau" ];
   boot.blacklistedKernelModules = [ "nouveau" ];