flake/home/applications/fcitx5/default.nix

37 lines
955 B
Nix
Raw Normal View History

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
]);
2023-09-19 00:17:43 +00:00
};
2023-12-18 19:33:52 +00:00
# Fcitx5 themes
xdg.configFile."fcitx5/conf/classicui.conf".text = "Theme=Tokyonight-Storm";
xdg.dataFile = let
tokyonight = pkgs.fetchFromGitHub {
owner = "ch3n9w";
repo = "fcitx5-Tokyonight";
rev = "f7454ab387d6b071ee12ff7ee819f0c7030fdf2c";
hash = "sha256-swOy0kDZUdqtC2sPSZEBLnHSs8dpQ/QfFMObI6BARfo=";
};
in {
"fcitx5/themes/Tokyonight-Day".source = "${tokyonight}/Tokyonight-Day";
"fcitx5/themes/Tokyonight-Storm".source = "${tokyonight}/Tokyonight-Storm";
};
2023-09-19 00:17:43 +00:00
home.sessionVariables = {
"FCITX_NO_PREEDIT_APPS" = "gvim.*,wps.*,wpp.*,et.*,cinny,epiphany";
};
}