2024-09-20 17:38:01 +00:00
|
|
|
{ lib, pkgs, ... }:
|
2024-08-25 15:02:35 +00:00
|
|
|
let
|
2024-07-31 06:13:52 +00:00
|
|
|
package = pkgs.qt6Packages.fcitx5-with-addons.override {
|
|
|
|
addons = with pkgs; [
|
2024-07-02 08:09:20 +00:00
|
|
|
qt6Packages.fcitx5-chinese-addons
|
2024-07-02 05:49:41 +00:00
|
|
|
fcitx5-pinyin-minecraft
|
|
|
|
fcitx5-pinyin-moegirl
|
|
|
|
fcitx5-pinyin-zhwiki
|
|
|
|
];
|
2023-09-19 00:17:43 +00:00
|
|
|
};
|
2024-08-25 15:02:35 +00:00
|
|
|
in
|
|
|
|
{
|
2024-09-20 17:38:01 +00:00
|
|
|
home.packages = [ package ];
|
2024-07-31 06:13:52 +00:00
|
|
|
|
|
|
|
systemd.user.services.fcitx5-daemon = {
|
|
|
|
Unit.Description = "Fcitx5 input method editor";
|
2024-08-25 15:02:35 +00:00
|
|
|
Unit.PartOf = [ "graphical-session.target" ];
|
2024-07-31 06:13:52 +00:00
|
|
|
Service.ExecStart = lib.getExe' package "fcitx5";
|
2024-08-25 15:02:35 +00:00
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
2024-07-31 06:13:52 +00:00
|
|
|
};
|
2023-09-19 00:17:43 +00:00
|
|
|
|
2024-03-05 06:05:59 +00:00
|
|
|
xdg.configFile."fcitx5/conf/classicui.conf".text = ''
|
|
|
|
Vertical Candidate List=True
|
2024-03-10 05:47:06 +00:00
|
|
|
PreferTextIcon=True
|
2024-03-05 06:05:59 +00:00
|
|
|
'';
|
2023-11-04 10:14:42 +00:00
|
|
|
}
|