.files/nix/homeModules/common/fcitx5/default.nix
Léana 江 808dfa95ae
vanadium/xmonad: keep some env var config
Revert "home/firefox: set MOZ_USE_XINPUT2=1"

This reverts commit 7e5116f55d.

Revert "home/fcitx: set GLFW_IM_MODULE"

This reverts commit 7d949dcce2.
2025-08-20 18:12:49 +02:00

25 lines
741 B
Nix

{
pkgs,
config,
lib,
...
}: let
cfg = config.i18n.inputMethod;
in {
i18n.inputMethod = {
fcitx5.addons = [
pkgs.fcitx5-chinese-addons
pkgs.fcitx5-table-extra
];
};
# Note:
# fcitx5, when wrapped with nix, will keep pointing to the configuration in the nix store.
# In order to change the configuration, you need to:
# - kill the existing fcitx5 process because the configtool kinda talks to it (?)
# - unlink the configuration file linked by home-manager (or copy it) so fcitx5-configtool can write to it
# - use fcitx5-configtool from a nix shell so that it doesn't get stuck with the nix store configuration
xdg.configFile = lib.mkIf cfg.enable {
"fcitx5".source = "${./fcitx}";
};
}