From 639c6b91a920b1129af298a598abc1ebc2d6c794 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 26 Feb 2016 18:43:54 -0600 Subject: [PATCH] ibus: add engine list to module description --- nixos/modules/i18n/inputMethod/ibus.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nixos/modules/i18n/inputMethod/ibus.nix b/nixos/modules/i18n/inputMethod/ibus.nix index 581a0451990..bb80f43634d 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: "${name}") + (lib.attrNames pkgs.ibus-engines)); + in + "Enabled IBus engines. Available engines are: ${engines}."; }; }; };