Wayland and fcitx5 (japanese input)

Does anyone here have a working setup for fcitx under wayland? I currently have

  i18n.defaultLocale = "en_US.UTF-8";
  i18n = {
    inputMethod = {
      enabled = "fcitx5";
      fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
      fcitx5.addons = with pkgs; [
        fcitx5-mozc
        fcitx5-gtk
      ];
    };
  };

and

    extraSessionCommands = ''
      # https://www.reddit.com/r/swaywm/comments/i6qlos/how_do_i_use_an_ime_with_sway/g1lk4xh?utm_source=share&utm_medium=web2x&context=3
      export INPUT_METHOD=fcitx
      export QT_IM_MODULE=fcitx
      export GTK_IM_MODULE=fcitx
      export XMODIFIERS=@im=fcitx
      export XIM_SERVERS=fcitx

and I can start fcitx5 just fine and configure it but the input selection switch won’t show up under e.g., Alacritty and Firefox. I can make it work for Alacritty by starting with WAYLAND_DISPLAY= alacritty but that doesn’t seem like a sustainable workaround since it messes with other display settings.

Should I just give up on Japanese input on Wayland in at least browser and terminal?