Cannot use fcitx5 on Tor-browser, also the --allow-remote flag do not work

Hi, I am a beginner just testing NixOS for a few days.
I’ve encountered two problems related to Tor-browser.

First, I cannot type anything other than English with fcitx5 in tor-browser.
Other browsers like firefox and librewolf are working fine.

Second, passing the --allow-remote flag to tor-browser never work, with error Error: argument --no-remote is invalid when argument --allow-remote is specified. It has no problem in arch linux.

What should I do?

I can now use --allow-remote by copying the default.nix of tor-browser in nixpkgs to somewhere and remove this line:

Then install the custom tor-browser with this in /etc/nixos/configuration.nix

{
	environment.systemPackages = with pkgs; [
               # .....
               	(callPackage ./somewhere/default.nix { } )
        ];
}

I am still testing how to make fcitx5 work with tor-browser.