fcitx: show available engines in module description
This commit is contained in:
parent
a91161aa57
commit
efad7bd47d
|
@ -18,10 +18,14 @@ in
|
||||||
type = with types; listOf fcitxEngine;
|
type = with types; listOf fcitxEngine;
|
||||||
default = [];
|
default = [];
|
||||||
example = literalExample "with pkgs.fcitx-engines; [ mozc hangul ]";
|
example = literalExample "with pkgs.fcitx-engines; [ mozc hangul ]";
|
||||||
description = ''
|
description =
|
||||||
Enabled Fcitx engines.
|
let
|
||||||
Available engines can be found by running `nix-env "<nixpkgs>" . -qaP -A fcitx-engines`.
|
engines =
|
||||||
'';
|
lib.concatStringsSep ", "
|
||||||
|
(map (name: "<literal>${name}</literal>")
|
||||||
|
(lib.attrNames pkgs.fcitx-engines));
|
||||||
|
in
|
||||||
|
"Enabled Fcitx engines. Available engines are: ${engines}.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue