23 lines
480 B
Nix
23 lines
480 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.attrsets) attrValues;
|
|
in {
|
|
i18n.inputMethod = {
|
|
enabled = "fcitx5";
|
|
fcitx5.addons = attrValues {
|
|
inherit (pkgs)
|
|
fcitx5-gtk
|
|
fcitx5-skk-qt
|
|
;
|
|
inherit (pkgs.libsForQt5) fcitx5-qt;
|
|
};
|
|
};
|
|
environment.sessionVariables = {
|
|
GTK_IM_MODULE = "fcitx";
|
|
QT_IM_MODULE = "fcitx";
|
|
XMODIFIERS = "@im=fcitx";
|
|
};
|
|
}
|