nixos-config/hardware/gpu-nvidia.nix
Felix Schröter 7a0f98d20e
feat(gnome): activate wayland
This activates wayland support but keep gnome-xorg as the default
session since some applications do not run with this setup yet.
2021-08-04 22:25:56 +02:00

19 lines
571 B
Nix

{ config, pkgs, ... }:
{
# Graphics drivers
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true;
services.xserver.screenSection = ''
Option "metamodes" "1920x1080_120 +0+0 {AllowGSYNC=On, AllowGSYNCCompatible=On, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
'';
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiVdpau ];
};
}