2024-12-10 20:26:33 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-10 19:46:04 +12:00
|
|
|
let
|
|
|
|
imcfg = config.i18n.inputMethod;
|
|
|
|
in
|
2020-09-17 00:01:57 +08:00
|
|
|
{
|
2024-08-30 00:46:28 +02:00
|
|
|
config = lib.mkIf (imcfg.enable && imcfg.type == "hime") {
|
2020-10-09 23:32:58 +08:00
|
|
|
i18n.inputMethod.package = pkgs.hime;
|
2020-09-17 00:01:57 +08:00
|
|
|
environment.variables = {
|
|
|
|
GTK_IM_MODULE = "hime";
|
2024-12-10 20:26:33 +01:00
|
|
|
QT_IM_MODULE = "hime";
|
|
|
|
XMODIFIERS = "@im=hime";
|
2020-09-17 00:01:57 +08:00
|
|
|
};
|
|
|
|
services.xserver.displayManager.sessionCommands = "${pkgs.hime}/bin/hime &";
|
|
|
|
};
|
|
|
|
}
|