2020-10-19 00:13:06 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
with lib;
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
imcfg = config.i18n.inputMethod;
|
|
|
|
in
|
2020-10-07 09:15:18 +00:00
|
|
|
{
|
2024-07-27 06:49:29 +00:00
|
|
|
config = mkIf (imcfg.enable && imcfg.type == "hime") {
|
2020-10-19 00:13:06 +00:00
|
|
|
i18n.inputMethod.package = pkgs.hime;
|
2020-10-07 09:15:18 +00:00
|
|
|
environment.variables = {
|
|
|
|
GTK_IM_MODULE = "hime";
|
|
|
|
QT_IM_MODULE = "hime";
|
|
|
|
XMODIFIERS = "@im=hime";
|
|
|
|
};
|
|
|
|
services.xserver.displayManager.sessionCommands = "${pkgs.hime}/bin/hime &";
|
|
|
|
};
|
|
|
|
}
|