💾 Archived View for thatit.be › 2023-09-23-09-27-00.gmi captured on 2024-05-10 at 11:08:28. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

➡️ Next capture (2024-05-26)

🚧 View Differences

-=-=-=-=-=-=-

Enabling Chinese input on NixOS

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.

Tags

#nixos

#fcitx5

#chinese

Navigation

index

tags

updated: 2023-09-23 09:40:36

generated: 2024-05-03