Update fcitx configuration.

This commit is contained in:
Kevin Baensch 2024-11-16 11:29:02 +01:00
parent f0fc250116
commit 5a07580ed3
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -9,11 +9,12 @@
defaultLocale = "en_US.UTF-8"; defaultLocale = "en_US.UTF-8";
supportedLocales = ["all"]; supportedLocales = ["all"];
inputMethod = { inputMethod = {
enabled = enable = (lib.elem "desktop" config.machine.services);
if (lib.elem "desktop" config.machine.services) type = "fcitx5";
then "fcitx5" fcitx5 = {
else null; waylandFrontend = true;
fcitx5.addons = with pkgs; [fcitx5-chinese-addons fcitx5-mozc fcitx5-table-extra]; addons = with pkgs; [fcitx5-chinese-addons fcitx5-mozc fcitx5-table-extra];
};
}; };
}; };
} }