mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 14:20:23 +01:00
27 lines
684 B
Nix
27 lines
684 B
Nix
{ pkgs, ... }:
|
|
{
|
|
xdg.configFile = {
|
|
"fcitx5/profile" = {
|
|
source = ./profile;
|
|
# every time fcitx5 switch input method, it will modify ~/.config/fcitx5/profile,
|
|
# so we need to force replace it in every rebuild to avoid file conflict.
|
|
force = true;
|
|
};
|
|
};
|
|
|
|
i18n.inputMethod = {
|
|
enable = true;
|
|
type = "fcitx5";
|
|
fcitx5.waylandFrontend = true;
|
|
fcitx5.addons = with pkgs; [
|
|
# for flypy chinese input method
|
|
fcitx5-rime
|
|
# needed enable rime using configtool after installed
|
|
fcitx5-configtool
|
|
fcitx5-chinese-addons
|
|
# fcitx5-mozc # japanese input method
|
|
fcitx5-gtk # gtk im module
|
|
];
|
|
};
|
|
}
|