flake/home/applications/fcitx5/default.nix

27 lines
664 B
Nix
Raw Normal View History

2024-09-20 17:38:01 +00:00
{ lib, pkgs, ... }:
let
2024-07-31 06:13:52 +00:00
package = pkgs.qt6Packages.fcitx5-with-addons.override {
addons = with pkgs; [
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
};
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";
Unit.PartOf = [ "graphical-session.target" ];
2024-07-31 06:13:52 +00:00
Service.ExecStart = lib.getExe' package "fcitx5";
Install.WantedBy = [ "graphical-session.target" ];
2024-07-31 06:13:52 +00:00
};
2023-09-19 00:17:43 +00:00
xdg.configFile."fcitx5/conf/classicui.conf".text = ''
Vertical Candidate List=True
2024-03-10 05:47:06 +00:00
PreferTextIcon=True
'';
}