feat: persistent mozc's config & antigravity's data

This commit is contained in:
Ryan Yin
2026-01-02 20:55:38 +08:00
parent bc1bbf3318
commit f6266d72e6
4 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
# fcitx5 - IME
## Available Configurations
- `profile` → Symlink will be created at: `~/.config/fcitx5/profile`
- `config1.db` (Mozc config) → Symlink will be created at: `~/.config/mozc/config1.db`
- Main changes from the defaults: use half-width for all alphabets, numbers, and punctuation.
- https://github.com/google/mozc/blob/2.30.5544.102/docs/configurations.md

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
xdg.configFile = { xdg.configFile = {
"fcitx5/profile" = { "fcitx5/profile" = {
@@ -7,6 +7,8 @@
# so we need to force replace it in every rebuild to avoid file conflict. # so we need to force replace it in every rebuild to avoid file conflict.
force = true; force = true;
}; };
"mozc/config1.db".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nix-config/home/linux/gui/base/fcitx5/mozc-config1.db";
}; };
i18n.inputMethod = { i18n.inputMethod = {
@@ -22,7 +24,9 @@
# fcitx5-chinese-addons # we use rime instead # fcitx5-chinese-addons # we use rime instead
# Japanese # Japanese
fcitx5-mozc-ut # ctrl-i / F7 - convert to takakana
# ctrl-u / F6 - convert to hiragana
fcitx5-mozc-ut # Moze with UT dictionary
]; ];
}; };
} }

Binary file not shown.

View File

@@ -143,6 +143,7 @@ in
# google ai editor (antigravity) # google ai editor (antigravity)
".config/Antigravity" ".config/Antigravity"
".antigravity"
# ai agents # ai agents
".claude" ".claude"
@@ -307,6 +308,9 @@ in
# Digital Painting # Digital Painting
".local/share/krita" ".local/share/krita"
# Japanese IME
".config/mozc" # used by fcitx5-mozc
".config/nushell" ".config/nushell"
]; ];
files = [ files = [