feat(desktop): use NIXOS_OZONE_WL

This commit is contained in:
2025-06-22 09:51:17 +08:00
parent 0c679290c5
commit c8c6a09684
3 changed files with 13 additions and 7 deletions

View File

@@ -24,7 +24,17 @@
signal-desktop signal-desktop
cinny-desktop cinny-desktop
discord discord
qq (master.qq.overrideAttrs (
final: prev: {
preInstall =
prev.preInstall or ""
+ ''
gappsWrapperArgs+=(
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}"
)
'';
}
))
gnome-clocks gnome-clocks

View File

@@ -92,7 +92,8 @@
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "niri"; XDG_CURRENT_DESKTOP = "niri";
XDG_SESSION_DESKTOP = "niri"; XDG_SESSION_DESKTOP = "niri";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
NIXOS_OZONE_WL = "1";
}; };
spawn-at-startup = map (c: { command = c; }) [ spawn-at-startup = map (c: { command = c; }) [

View File

@@ -6,11 +6,6 @@
final: prev: final: prev:
infuse prev { infuse prev {
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ]; cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
qq.__output.preInstall.__append = ''
gappsWrapperArgs+=(
--prefix GTK_IM_MODULE : fcitx
)
'';
matrix-synapse.__assign = final.stable.matrix-synapse; matrix-synapse.__assign = final.stable.matrix-synapse;
}; };