It was a bit tricky to find the right package name that contained the Pinyin methods I wanted, ultimately I spotted it through a random google search :-( The rest of the config I was able to guess from the configuration.nix man page.
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "zh_CN.UTF-8/UTF-8" ]; i18n.inputMethod = { enabled = "fcitx5"; fcitx5.addons = with pkgs; [ fcitx5-gtk fcitx5-chinese-addons ]; };
After a nixos-rebuild switch I was able to fcitx5-config-qt and pick a Pinyin keyboard. After that I just have to launch fcitx5 for whatever WM I use. It even works in qutebrowser which has been something of a problem for me depending on which system I’m using. I have some where it works and others where it doesn’t.
updated: 2023-09-23 09:40:36
generated: 2024-06-15