8 imcfg = config.i18n.inputMethod;
14 i18n.inputMethod.uim = {
15 toolbar = lib.mkOption {
16 type = lib.types.enum [
24 example = "gtk-systray";
33 config = lib.mkIf (imcfg.enable && imcfg.type == "uim") {
34 i18n.inputMethod.package = pkgs.uim;
36 environment.variables = {
37 GTK_IM_MODULE = "uim";
39 XMODIFIERS = "@im=uim";
41 services.xserver.displayManager.sessionCommands = ''
42 ${pkgs.uim}/bin/uim-xim &
43 ${pkgs.uim}/bin/uim-toolbar-${cfg.toolbar} &