nixos-config/hardware/gpu-nvidia.nix

19 lines
571 B
Nix
Raw Normal View History

2019-10-19 12:55:35 +02:00
{ config, pkgs, ... }:
{
# Graphics drivers
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true;
2019-12-14 12:16:41 +01:00
services.xserver.screenSection = ''
Option "metamodes" "1920x1080_120 +0+0 {AllowGSYNC=On, AllowGSYNCCompatible=On, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
2019-12-14 12:16:41 +01:00
'';
hardware.opengl = {
enable = true;
driSupport = true;
2019-12-14 12:16:41 +01:00
driSupport32Bit = true;
2020-09-23 13:19:19 +02:00
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiVdpau ];
2019-12-14 12:16:41 +01:00
};
2019-10-19 12:55:35 +02:00
}