flake/home/applications/fcitx5/default.nix

27 lines
664 B
Nix
Raw Normal View History

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