diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-08-27 18:55:18 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-08-27 18:55:24 +0530 |
commit | b543cf800669bfcb69608f242628729e438cbd0e (patch) | |
tree | f371b2a417c6829b4a118ecf56b1085cb4739237 /os/cez | |
parent | f7f109cb140953a0d3053e5f15129535defd223a (diff) |
cez/specialization/nvidia: force nvidia dgpu
Diffstat (limited to 'os/cez')
-rw-r--r-- | os/cez/hardware-configuration.nix | 8 |
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; |