From 89ced339604cfecd66d673372056fed9635a3536 Mon Sep 17 00:00:00 2001 From: derped Date: Mon, 29 Jul 2024 11:47:59 +0200 Subject: [PATCH] Fix fcitx enable condition. --- config/locale.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/locale.nix b/config/locale.nix index 249c233..4118bd6 100644 --- a/config/locale.nix +++ b/config/locale.nix @@ -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];