From b543cf800669bfcb69608f242628729e438cbd0e Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 27 Aug 2024 18:55:18 +0530 Subject: cez/specialization/nvidia: force nvidia dgpu --- os/cez/hardware-configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'os/cez') 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; -- cgit v1.2.3