2023-10-03 19:22:24 +02:00
|
|
|
{
|
2024-08-25 20:17:14 +02:00
|
|
|
lib,
|
2023-10-03 19:22:24 +02:00
|
|
|
pkgs,
|
|
|
|
...
|
2024-08-25 20:17:14 +02:00
|
|
|
}: let
|
|
|
|
inherit (lib.attrsets) attrValues;
|
|
|
|
in {
|
2023-10-03 19:22:24 +02:00
|
|
|
i18n.inputMethod = {
|
|
|
|
enabled = "fcitx5";
|
2024-08-25 20:17:14 +02:00
|
|
|
fcitx5.addons = attrValues {
|
|
|
|
inherit (pkgs)
|
|
|
|
fcitx5-gtk
|
|
|
|
fcitx5-skk-qt
|
|
|
|
;
|
|
|
|
inherit (pkgs.libsForQt5) fcitx5-qt;
|
|
|
|
};
|
2023-10-03 19:22:24 +02:00
|
|
|
};
|
2024-02-14 22:50:54 +01:00
|
|
|
environment.sessionVariables = {
|
|
|
|
GTK_IM_MODULE = "fcitx";
|
|
|
|
QT_IM_MODULE = "fcitx";
|
|
|
|
XMODIFIERS = "@im=fcitx";
|
|
|
|
};
|
2023-10-03 19:22:24 +02:00
|
|
|
}
|