flake/home/applications/fcitx5/default.nix

28 lines
609 B
Nix
Raw Normal View History

2023-12-16 08:58:10 +00:00
{
2024-02-27 07:38:36 +00:00
config,
2023-12-16 08:58:10 +00:00
pkgs,
inputs,
...
}: {
2023-09-19 00:17:43 +00:00
i18n.inputMethod = {
enabled = "fcitx5";
2023-12-16 08:58:10 +00:00
fcitx5.addons =
(with pkgs; [
fcitx5-chinese-addons
#fcitx5-rime
])
2023-12-27 07:28:18 +00:00
++ (with inputs.berberman.packages.${pkgs.stdenv.hostPlatform.system}; [
2023-12-16 08:58:10 +00:00
fcitx5-pinyin-moegirl
fcitx5-pinyin-zhwiki
2024-01-28 04:37:57 +00:00
])
2024-02-27 07:38:36 +00:00
++ (with config.nur.repos.guanran928; [
2024-01-28 04:37:57 +00:00
fcitx5-tokyonight
2023-12-16 08:58:10 +00:00
]);
2023-09-19 00:17:43 +00:00
};
2023-12-18 19:33:52 +00:00
xdg.configFile."fcitx5/conf/classicui.conf".text = "Theme=Tokyonight-Storm";
2023-09-19 00:17:43 +00:00
home.sessionVariables = {
"FCITX_NO_PREEDIT_APPS" = "gvim.*,wps.*,wpp.*,et.*,cinny,epiphany";
};
}