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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user