summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;