From 2383a708f69a3b2eca50521808c4233ef7bb515a Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 26 Feb 2016 18:43:41 -0600 Subject: [PATCH 1/2] ibus: refresh cache at startup --- nixos/modules/i18n/inputMethod/ibus.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/i18n/inputMethod/ibus.nix b/nixos/modules/i18n/inputMethod/ibus.nix index 5d01311c91b..581a0451990 100644 --- a/nixos/modules/i18n/inputMethod/ibus.nix +++ b/nixos/modules/i18n/inputMethod/ibus.nix @@ -17,7 +17,7 @@ let [Desktop Entry] Name=IBus Type=Application - Exec=${ibusPackage}/bin/ibus-daemon -dx + Exec=${ibusPackage}/bin/ibus-daemon --daemonize --xim --cache=refresh ''; }; in From 639c6b91a920b1129af298a598abc1ebc2d6c794 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 26 Feb 2016 18:43:54 -0600 Subject: [PATCH 2/2] 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}."; }; }; };