1 { config, pkgs, lib, ... }:
6 imcfg = config.i18n.inputMethod;
12 i18n.inputMethod.uim = {
14 type = types.enum [ "gtk" "gtk3" "gtk-systray" "gtk3-systray" "qt5" ];
16 example = "gtk-systray";
25 config = mkIf (imcfg.enable && imcfg.type == "uim") {
26 i18n.inputMethod.package = pkgs.uim;
28 environment.variables = {
29 GTK_IM_MODULE = "uim";
31 XMODIFIERS = "@im=uim";
33 services.xserver.displayManager.sessionCommands = ''
34 ${pkgs.uim}/bin/uim-xim &
35 ${pkgs.uim}/bin/uim-toolbar-${cfg.toolbar} &