From b07d76f8771d74bda1162c24522c5eb783a37713 Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 9 Jul 2025 07:54:23 -0400 Subject: [PATCH] Nvidia specific lines for nixy. --- nodes/hosts/nixy/system/environment.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nodes/hosts/nixy/system/environment.nix diff --git a/nodes/hosts/nixy/system/environment.nix b/nodes/hosts/nixy/system/environment.nix new file mode 100644 index 0000000..530d7fa --- /dev/null +++ b/nodes/hosts/nixy/system/environment.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: { + environment = { + variables = { + # Required to run the correct GBM backend for nvidia GPUs on wayland + GBM_BACKEND = "nvidia-drm"; + # Apparently, without this nouveau may attempt to be used instead + # (despite it being blacklisted) + __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + # Hardware cursors are currently broken on wlroots + WLR_NO_HARDWARE_CURSORS = "1"; + }; + }; +}