2024-10-21 12:31:30 +07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-12 09:54:11 +07:00
|
|
|
let
|
|
|
|
cfg = config.profile.keyboard;
|
|
|
|
in
|
|
|
|
lib.mkMerge [
|
2024-11-24 11:02:56 +07:00
|
|
|
# {
|
|
|
|
# i18n.inputMethod = {
|
|
|
|
# enabled = "fcitx5";
|
|
|
|
# fcitx5.waylandFrontend = true;
|
|
|
|
# };
|
|
|
|
# }
|
|
|
|
# {
|
|
|
|
# i18n.inputMethod = lib.mkIf cfg.language.japanese ({
|
|
|
|
# fcitx5.addons = with pkgs; [
|
|
|
|
# fcitx5-mozc
|
|
|
|
# fcitx5-gtk
|
|
|
|
# ];
|
|
|
|
# });
|
|
|
|
# }
|
|
|
|
# {
|
|
|
|
# environment.variables = lib.mkIf (config.i18n.inputMethod.enabled == "fcitx5") {
|
|
|
|
# # Integration with some tools and binaries like kitty.
|
|
|
|
# GLFW_IM_MODULE = "ibus";
|
|
|
|
# };
|
|
|
|
# }
|
2024-06-12 09:54:11 +07:00
|
|
|
]
|