diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-02-26 18:43:54 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-02-26 18:43:54 -0600 |
commit | 639c6b91a920b1129af298a598abc1ebc2d6c794 (patch) | |
tree | b29bf8f162a394781ef7b424146727bf8c175072 /nixos/modules/i18n | |
parent | 2383a708f69a3b2eca50521808c4233ef7bb515a (diff) |
ibus: add engine list to module description
Diffstat (limited to 'nixos/modules/i18n')
-rw-r--r-- | nixos/modules/i18n/inputMethod/ibus.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/modules/i18n/inputMethod/ibus.nix b/nixos/modules/i18n/inputMethod/ibus.nix index 581a0451990b..bb80f43634d3 100644 --- a/nixos/modules/i18n/inputMethod/ibus.nix +++ b/nixos/modules/i18n/inputMethod/ibus.nix @@ -28,10 +28,14 @@ in type = with types; listOf ibusEngine; default = []; example = literalExample "with pkgs.ibus-engines; [ mozc hangul ]"; - description = '' - Enabled IBus engines. - Available engines can be found by running `nix-env "<nixpkgs>" . -qaP -A ibus-engines`. - ''; + description = + let + engines = + lib.concatStringsSep ", " + (map (name: "<literal>${name}</literal>") + (lib.attrNames pkgs.ibus-engines)); + in + "Enabled IBus engines. Available engines are: ${engines}."; }; }; }; |