From c9016557c078387380a78b4f76eb098adad6d24e Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Sat, 14 Dec 2019 12:16:41 +0100 Subject: [PATCH] feat(home-pc): update gpu settings --- common/gpu-nvidia.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/gpu-nvidia.nix b/common/gpu-nvidia.nix index fd718b2..a10f43f 100644 --- a/common/gpu-nvidia.nix +++ b/common/gpu-nvidia.nix @@ -3,5 +3,15 @@ { # Graphics drivers services.xserver.videoDrivers = [ "nvidia" ]; - hardware.opengl.driSupport32Bit = true; + services.xserver.screenSection = '' + Option "metamodes" "1920x1080_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}" + ''; + + hardware.opengl = { + driSupport32Bit = true; + extraPackages = with pkgs; [ + libvdpau-va-gl + vaapiVdpau + ]; + }; }