24 lines
500 B
Nix
24 lines
500 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.attrsets) attrValues;
|
|
in {
|
|
i18n.inputMethod = {
|
|
enable = true;
|
|
type = "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";
|
|
};
|
|
}
|