Fcitx5: Difference between revisions
drop 23.11 |
Starfish2228 (talk | contribs) →Setup: update option names |
||
Line 2: | Line 2: | ||
== Setup == | == Setup == | ||
The following is a simple NixOS configuration that | The following is a simple NixOS configuration that sets up fcitx5, its GUI config tool, and two addons.<syntaxhighlight lang="nix"> | ||
i18n.inputMethod = { | |||
enable = true; | |||
type = "fcitx5"; | |||
fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-gtk ]; | |||
}; | |||
</syntaxhighlight>Notably, NixOS automagically sets session variables that are required for fcitx5. | |||
Notably, NixOS automagically sets session variables that are required for fcitx5. | |||
== Troubleshooting == | == Troubleshooting == | ||
=== Add-ons Not Detected === | === Add-ons Not Detected === | ||
'''Do not''' install fcitx5 using <code>environment.systemPackages</code> can interfere with add-on detection. Make sure to only add fcitx5 to your config as shown in [[Fcitx5#Setup | Setup]]. | |||
[[File:Fcitx5-mozc-load-fail.jpg|thumb|Fcitx5 failing to load IME module (claims "使用不可" (unusable))]] | [[File:Fcitx5-mozc-load-fail.jpg|thumb|Fcitx5 failing to load IME module (claims "使用不可" (unusable))]] |