Fcitx5: Difference between revisions

Jasi (talk | contribs)
m Setup: Adhere to MOS for article headings.
Jasi (talk | contribs)
System Setup: Use file template instead of code block.
Line 5: Line 5:
=== System Setup ===
=== System Setup ===


The following is a simple NixOS configuration that sets up fcitx5, its GUI config tool, and two addons.<syntaxhighlight lang="nix">
The following is a snippet for a NixOS configuration that sets up fcitx5, its GUI config tool, and two addons.
i18n.inputMethod = {
{{File|3={
  enable = true;
  i18n.inputMethod = {
  type = "fcitx5";
    enable = true;
  fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-gtk ];
    type = "fcitx5";
};
    fcitx5.addons = with pkgs; [
</syntaxhighlight>Notably, NixOS automagically sets session variables that are required for fcitx5.  
      fcitx5-mozc
      fcitx5-gtk
    ];
  };
}|name=/etc/nixos/configuration.nix|lang=nix}}


== Configuration ==
== Configuration ==