zaphyra's git: nixfiles

zaphyra's nixfiles

commit ccd9b79c41da7aeac41481feedb8b7b57bfe1560
parent 6cea19acda06fa562b4234ac6ae3ec43fae4303a
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Tue, 7 Oct 2025 10:05:46 +0200

Add session variables wayland support
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/config/nixos/modules/presets/graphical/enable.nix b/config/nixos/modules/presets/graphical/enable.nix
@@ -17,6 +17,13 @@ in
   };
 
   config = lib.mkIf cfg {
+      environment.sessionVariables = {
+      _JAVA_AWT_WM_NONREPARENTING = "1";
+      NIXOS_OZONE_WL = "1";
+      SDL_VIDEODRIVER = "wayland"; # Can break some native games
+      WLR_NO_HARDWARE_CURSORS = "1";
+    };
+
     modules = {
       audio.enable = true;
       boot = {