Kakuzade

nvidia-configuration

Feb 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4.  
  5. services.xserver.useGlamor = true;
  6. hardware.firmware = with pkgs; [ firmwareLinuxNonfree ]; # Habilitar firmware privativo
  7. services.xserver.videoDrivers = [ "nvidia" ]; # Habilitar drivers privativos
  8. hardware.opengl.driSupport = true; # Habilitar opengl
  9. hardware.opengl.driSupport32Bit = true; # Habilitar opengl 32 bit
  10.  
  11. environment.systemPackages = with pkgs; [
  12. libva-full
  13. libvdpau
  14. vdpauinfo
  15. glxinfo
  16. ];
  17.  
  18. hardware.opengl.extraPackages = with pkgs; [ vaapiVdpau ]; # Driver vaapi
  19. hardware.opengl.extraPackages32 = with pkgs; [ vaapiVdpau ]; # Driver vaapi 32bit
  20.  
  21. # Configurar drivres de vdpau y vaapi
  22.  
  23. environment.variables = {
  24. #VDPAU_DRIVER = "nvidia";
  25. LIBVA_DRIVER_NAME = "vdpau";
  26. };
  27.  
  28. # Areglar el tearing de nvidia con kwin
  29.  
  30. environment.etc."profile.d/kwin.sh" = {
  31. mode = "444";
  32. text = ''
  33. export __GL_YIELD="USLEEP"
  34. export KWIN_TRIPLE_BUFFER=1
  35. '';
  36. };
  37.  
  38. environment.shellInit = ''
  39. source /etc/profile.d/kwin.sh
  40. '';
  41.  
  42.  
  43. }
Add Comment
Please, Sign In to add comment