Fix fcitx enable condition.
This commit is contained in:
parent
3fcbc67bd3
commit
89ced33960
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
@ -8,8 +9,8 @@
|
||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
supportedLocales = ["all"];
|
supportedLocales = ["all"];
|
||||||
inputMethod = {
|
inputMethod = {
|
||||||
enabled =
|
enabled =
|
||||||
if config.services.xserver.enable
|
if (lib.elem "desktop" config.machine.services)
|
||||||
then "fcitx5"
|
then "fcitx5"
|
||||||
else null;
|
else null;
|
||||||
fcitx5.addons = with pkgs; [fcitx5-chinese-addons fcitx5-mozc fcitx5-table-extra];
|
fcitx5.addons = with pkgs; [fcitx5-chinese-addons fcitx5-mozc fcitx5-table-extra];
|
||||||
|
|
Loading…
Reference in a new issue