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

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
xdg.configFile = {
"fcitx5/profile" = {
@@ -7,6 +7,8 @@
# so we need to force replace it in every rebuild to avoid file conflict.
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 = {
@@ -22,7 +24,9 @@
# fcitx5-chinese-addons # we use rime instead
# Japanese
fcitx5-mozc-ut
# ctrl-i / F7 - convert to takakana
# ctrl-u / F6 - convert to hiragana
fcitx5-mozc-ut # Moze with UT dictionary
];
};
}