old
1{pkgs, ...}: let
2 fcitx5-rime = pkgs.fcitx5-rime.override {
3 rimeDataPkgs = [pkgs.nur.repos.xyenon.rime-ice];
4 };
5in {
6 xdg.configFile = {
7 "fcitx5/profile" = {
8 source = ./profile;
9 # every time fcitx5 switch input method, it will modify ~/.config/fcitx5/profile,
10 # so we need to force replace it in every rebuild to avoid file conflict.
11 force = true;
12 };
13 };
14
15 i18n.inputMethod = {
16 enable = true;
17 type = "fcitx5";
18 fcitx5 = {
19 # To fix configtool in plasma6
20 fcitx5-with-addons = pkgs.qt6Packages.fcitx5-with-addons;
21 addons = with pkgs; [
22 fcitx5-rime
23 fcitx5-gtk # gtk im module
24 ];
25 waylandFrontend = true;
26 };
27 };
28}