summaryrefslogtreecommitdiff
path: root/sif.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-02-08 22:59:05 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-02-08 22:59:05 +0100
commitc400508a276560dd6c9c2e2bd2c93d60be96d7b1 (patch)
treeffcce2ccd30c22483ef53bca05cae17a343344f1 /sif.nix
parentfadab4e5c3488fd4552860ed50885d5acb5e635d (diff)
downloadnixos-c400508a276560dd6c9c2e2bd2c93d60be96d7b1.tar
nixos-c400508a276560dd6c9c2e2bd2c93d60be96d7b1.tar.gz
nixos-c400508a276560dd6c9c2e2bd2c93d60be96d7b1.tar.bz2
nixos-c400508a276560dd6c9c2e2bd2c93d60be96d7b1.tar.xz
nixos-c400508a276560dd6c9c2e2bd2c93d60be96d7b1.zip
...
Diffstat (limited to 'sif.nix')
-rw-r--r--sif.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/sif.nix b/sif.nix
index 7d375d98..c9ae4617 100644
--- a/sif.nix
+++ b/sif.nix
@@ -125,7 +125,7 @@
125 125
126 dpi = 282; 126 dpi = 282;
127 127
128 videoDrivers = [ "intel" "nvidiaBeta" ]; 128 videoDrivers = [ "nvidiaBeta" ];
129 129
130 screenSection = '' 130 screenSection = ''
131 Option "metamodes" "nvidia-auto-select +0+0 { ForceCompositionPipeline = On }" 131 Option "metamodes" "nvidia-auto-select +0+0 { ForceCompositionPipeline = On }"
@@ -330,11 +330,13 @@
330 330
331 nvidia = { 331 nvidia = {
332 modesetting.enable = true; 332 modesetting.enable = true;
333 optimus_prime = { 333 prime = {
334 enable = true; 334 enable = true;
335 nvidiaBusId = "PCI:1:0.0"; 335 nvidiaBusId = "PCI:1:0.0";
336 intelBusId = "PCI:0:2.0"; 336 intelBusId = "PCI:0:2.0";
337 }; 337 offload.enable = true;
338 sync.enable = true;
339 };
338 }; 340 };
339 341
340 opengl.driSupport32Bit = true; 342 opengl.driSupport32Bit = true;