niksos/hosts/niks/fcitx5.nix

24 lines
480 B
Nix
Raw Normal View History

2023-10-03 19:22:24 +02:00
{
lib,
2023-10-03 19:22:24 +02:00
pkgs,
...
}: let
inherit (lib.attrsets) attrValues;
in {
2023-10-03 19:22:24 +02:00
i18n.inputMethod = {
enabled = "fcitx5";
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
}