diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 914c56d..5ce67e0 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -157,6 +157,15 @@ mesa libGL dbus + + # Lightweight alternatives for X11 forwarding + firefox # Often faster than Chromium over X11 + qutebrowser # Keyboard-driven lightweight browser + + # X11 performance tools + xorg.xset + xorg.xdpyinfo + xorg.xwininfo ]; # Enable X11 forwarding support @@ -173,4 +182,14 @@ ]; fontconfig.enable = true; }; + + # X11 performance optimizations + environment.variables = { + # Disable some heavy X11 features for better performance over SSH + "_JAVA_AWT_WM_NONREPARENTING" = "1"; + # Optimize Qt applications for X11 forwarding + "QT_X11_NO_MITSHM" = "1"; + # Disable some graphics acceleration that doesn't work well over SSH + "LIBGL_ALWAYS_INDIRECT" = "1"; + }; }