NVIDIA: Difference between revisions
m fixed reverse sync mode labeled as sync mode in one place |
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; | ||
services.xserver.videoDrivers = [ "nvidia" ]; | services.xserver.videoDrivers = [ "nvidia" ]; | ||
hardware.nvidia.open = true; # | 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" ]; | ||