From 9a17994c30abf353f769ba2d9b64870b84044b42 Mon Sep 17 00:00:00 2001 From: Emma Thorpe Date: Thu, 4 Jun 2026 13:34:44 +0000 Subject: [PATCH] fix(sway): use wayland WINIT backend in session env WINIT_UNIX_BACKEND was set to x11, forcing winit apps onto XWayland in a Wayland session, contradicting the rest of the block. Set it to wayland, normalise the heredoc indentation, and drop the unused `options` arg. Co-Authored-By: Claude Opus 4.8 (1M context) --- lyrathorpe/swaywm.nix | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/lyrathorpe/swaywm.nix b/lyrathorpe/swaywm.nix index 1517f32..eb14ab9 100644 --- a/lyrathorpe/swaywm.nix +++ b/lyrathorpe/swaywm.nix @@ -1,7 +1,6 @@ { config, lib, - options, pkgs, ... }: @@ -18,18 +17,18 @@ in enable = true; wrapperFeatures.gtk = true; extraSessionCommands = '' - # QT - export QT_QPA_PLATFORM="wayland;xcb" - export QT_QPA_PLATFORMTHEME=qt5ct - # SDL - export SDL_VIDEODRIVER=wayland - # Java - export _JAVA_AWT_WM_NONREPARENTING=1 - # Misc - export CLUTTER_BACKEND=wayland - export WINIT_UNIX_BACKEND=x11 - export MOZ_ENABLE_WAYLAND=1 - ''; + # QT + export QT_QPA_PLATFORM="wayland;xcb" + export QT_QPA_PLATFORMTHEME=qt5ct + # SDL + export SDL_VIDEODRIVER=wayland + # Java + export _JAVA_AWT_WM_NONREPARENTING=1 + # Misc + export CLUTTER_BACKEND=wayland + export WINIT_UNIX_BACKEND=wayland + export MOZ_ENABLE_WAYLAND=1 + ''; # Core Wayland utilities. The lock screen, idle daemon, status bar and # notification daemon are configured per-user in home/sway.nix. extraPackages = with pkgs; [