From d0f500daa878ac86019b2529105edf16617c40e4 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 8 Jun 2026 15:11:31 -0700 Subject: [PATCH] nixos/desktop: run Claude Desktop natively on Wayland The claude-desktop-debian flake's launcher ignores NIXOS_OZONE_WL and ELECTRON_OZONE_PLATFORM_HINT and hardcodes --ozone-platform=x11, so the app runs under XWayland by default. Its only opt-in for native Wayland is CLAUDE_USE_WAYLAND=1, so set it as a session variable (trades away global hotkeys). Co-Authored-By: Claude Opus 4.8 --- nixos/desktop.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/desktop.nix b/nixos/desktop.nix index c20c216c..a75a6ea8 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -179,6 +179,11 @@ environment.sessionVariables = { # This is for the benefit of VSCODE running natively in wayland NIXOS_OZONE_WL = "1"; + # Claude Desktop's launcher (claude-desktop-debian flake) ignores + # NIXOS_OZONE_WL/ELECTRON_OZONE_PLATFORM_HINT and hardcodes + # --ozone-platform=x11 by default. This is the only knob it honors; + # it switches the launcher to native Wayland (loses global hotkeys). + CLAUDE_USE_WAYLAND = "1"; IM_HYPRLAND_SHELL_UI = cfg.shellUi; };