mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-22 09:29:48 +01:00
29 lines
680 B
Nix
29 lines
680 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; [
|
|
qt6Packages.fcitx5-configtool # GUI for fcitx5
|
|
fcitx5-gtk # gtk im module
|
|
|
|
# Chinese
|
|
fcitx5-rime # for flypy chinese input method
|
|
# fcitx5-chinese-addons # we use rime instead
|
|
|
|
# Japanese
|
|
fcitx5-mozc-ut
|
|
];
|
|
};
|
|
}
|