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