summaryrefslogtreecommitdiff
path: root/hosts/local/gui.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/local/gui.nix')
-rw-r--r--hosts/local/gui.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/hosts/local/gui.nix b/hosts/local/gui.nix
index a57ab1e..1532013 100644
--- a/hosts/local/gui.nix
+++ b/hosts/local/gui.nix
@@ -57,4 +57,24 @@
xorg.xhost
gparted
];
+
+ i18n.inputMethod = {
+ enable = true;
+ type = "fcitx5";
+ fcitx5.addons = with pkgs; [
+ fcitx5-mozc
+ # mozc-ut is better, wat do
+ fcitx5-gtk
+ libsForQt5.fcitx5-qt
+ fcitx5-lua
+ fcitx5-configtool
+ fcitx5-rime
+ ];
+ };
+ environment.variables = {
+ GTK_IM_MODULE = "fcitx";
+ QT_IM_MODULE = "fcitx";
+ XMODIFIERS = "@im=fcitx";
+ FCITX_SOCKET = "default";
+ };
}