home-manager: move fcitx5 to common

This commit is contained in:
Primrose 2024-11-19 20:16:28 +01:00
parent 2b4c99e67c
commit 09589a0db9
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
8 changed files with 23 additions and 14 deletions

View file

@ -0,0 +1,21 @@
{
pkgs,
config,
lib,
...
}:
{
i18n.inputMethod = {
fcitx5.addons = [
pkgs.fcitx5-chinese-addons
pkgs.fcitx5-table-extra
];
};
xdg.configFile = lib.mkIf (config.i18n.inputMethod.enabled != null) {
"fcitx5".source = ./fcitx;
};
}