niksos/hosts/niks/fcitx5.nix
2024-10-03 22:51:07 +02:00

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";
};
}