change fcitx5 config to pkg, use rime-ice default config.

This commit is contained in:
Ulic-youthlic 2025-01-10 18:44:38 +08:00
parent 445dfe6543
commit 424afb3ad4
4 changed files with 14 additions and 49 deletions

View file

@ -10,7 +10,6 @@
imports = [
./starship
./fish
./rime-ice.nix
./firefox.nix
./foot
./ghostty

View file

@ -1,40 +0,0 @@
{ ... }:
{
xdg.dataFile = {
"fcitx5/rime/default.custom.yaml".text = ''
patch:
__include: rime_ice_suggestion:/
schema_list:
- schema: double_pinyin_flypy
'';
"fcitx5/rime/rime_ice.custom.yaml".text = ''
patch:
"translator/dictionary": custom_dict
'';
"fcitx5/rime/custom_dict.dict.yaml".text = ''
# Rime dictionary
# encoding: utf-8
---
name: custom_dict
version: "1.0"
sort: by_weight
use_preset_vocabulary: false
import_tables:
# https://github.com/iDvel/rime-ice/blob/main/rime_ice.dict.yaml
- cn_dicts/8105 # 字表
- cn_dicts/41448 # 大字表(按需启用)(启用时和 8105 同时启用并放在 8105 下面)
- cn_dicts/base # 基础词库
- cn_dicts/ext # 扩展词库
- cn_dicts/tencent # 腾讯词向量(大词库,部署时间较长)
- cn_dicts/others # 一些杂项
- zhwiki
- moegirl
...
'';
};
}