summaryrefslogtreecommitdiff
path: root/os/cez
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-27 18:55:18 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-27 18:55:24 +0530
commitb543cf800669bfcb69608f242628729e438cbd0e (patch)
treef371b2a417c6829b4a118ecf56b1085cb4739237 /os/cez
parentf7f109cb140953a0d3053e5f15129535defd223a (diff)
cez/specialization/nvidia: force nvidia dgpu
Diffstat (limited to 'os/cez')
-rw-r--r--os/cez/hardware-configuration.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix
index a9dd37b..0cb3b73 100644
--- a/os/cez/hardware-configuration.nix
+++ b/os/cez/hardware-configuration.nix
@@ -8,9 +8,17 @@
# override nixos-hardware values
hardware.nvidia.prime.offload.enable = false;
+ hardware.amdgpu.initrd.enable = false;
services.xserver.videoDrivers = [ "modesetting" ];
specialisation.nvidia.configuration = {
+ environment.variables = {
+ DRI_PRIME = 1;
+ __NV_PRIME_RENDER_OFFLOAD = 1;
+ __VK_LAYER_NV_optimus = "NVIDIA_only";
+ __GLX_VENDOR_LIBRARY_NAME = "nvidia";
+ };
+
hardware.nvidia = {
open = true;
nvidiaSettings = false;