From 6b64b0250cbcbca3eb94d43c6c38e725338e02c1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 22 Mar 2022 17:35:26 +0100 Subject: Revert "sif: -nvidia" This reverts commit d6115750e5f6dd8acdbb3dca486f80713c14aaf3. --- hosts/sif/default.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 952aac8b..5ab15451 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix @@ -299,7 +299,16 @@ in { dpi = 282; - videoDrivers = [ "intel" ]; + videoDrivers = [ "nvidia" ]; + + screenSection = '' + Option "metamodes" "nvidia-auto-select +0+0 { ForceCompositionPipeline = On }" + ''; + + deviceSection = '' + Option "AccelMethod" "SNA" + Option "TearFree" "True" + ''; exportConfiguration = true; }; @@ -418,6 +427,15 @@ in { speed = 255; }; + nvidia = { + modesetting.enable = true; + prime = { + nvidiaBusId = "PCI:1:0:0"; + intelBusId = "PCI:0:2:0"; + sync.enable = true; + }; + }; + opengl = { enable = true; driSupport32Bit = true; -- cgit v1.2.3