mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
30 lines
592 B
Nix
30 lines
592 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
im = config.i18n.inputMethod;
|
|
in
|
|
{
|
|
config = lib.mkIf (im.enable && im.type == "hime") {
|
|
i18n.inputMethod.package = pkgs.hime;
|
|
|
|
home.sessionVariables = {
|
|
GTK_IM_MODULE = "hime";
|
|
QT_IM_MODULE = "hime";
|
|
XMODIFIERS = "@im=hime";
|
|
};
|
|
|
|
systemd.user.services.hime-daemon = {
|
|
Unit = {
|
|
Description = "Hime input method editor";
|
|
PartOf = [ "graphical-session.desktop" ];
|
|
};
|
|
Service.ExecStart = "${pkgs.hime}/bin/hime";
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
|
|
}
|