Fix fcitx enable condition.

This commit is contained in:
Kevin Baensch 2024-07-29 11:47:59 +02:00
parent 3fcbc67bd3
commit 89ced33960
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

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