diff --git a/modules/i18n/fcitx5.nix b/modules/i18n/fcitx5.nix index 037ece8..b76d696 100644 --- a/modules/i18n/fcitx5.nix +++ b/modules/i18n/fcitx5.nix @@ -102,6 +102,15 @@ lib.my.makeSwitch { ignoreUserConfig = true; }; }; + nixpkgs.overlays = [( + final: prev: lib.infuse prev (lib.genAttrs [ "qq" "vscodium" ] (pkg: { + ${pkg}.__output.preInstall.__append = '' + gappsWrapperArgs+=( + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}" + ) + ''; + })) + )]; my.home.programs.niri.settings = { binds."Mod+Space".action.spawn = [ "fcitx5-remote" diff --git a/overlays/default.nix b/overlays/default.nix index e76c6e5..a2dfe65 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -22,11 +22,6 @@ cage.__output.patches.__append = [ ./cage-specify-output-name.patch ]; matrix-synapse.__assign = final.stable.matrix-synapse; bottles.__input.removeWarningPopup.__assign = true; - qq.__output.preInstall.__append = '' - gappsWrapperArgs+=( - --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}" - ) - ''; sing-box.__assign = prev.sing-box.overrideAttrs (finalAttrs: { version = "1.11.14";