fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Ilan Joselevichi18n.inputMethod: add module7e2b1a42

master
563 B23 linesraw
1{ config, pkgs, lib, ... }:
2
3with lib; {
4  config = mkIf (config.i18n.inputMethod.enabled == "hime") {
5    i18n.inputMethod.package = pkgs.hime;
6
7    home.sessionVariables = {
8      GTK_IM_MODULE = "hime";
9      QT_IM_MODULE = "hime";
10      XMODIFIERS = "@im=hime";
11    };
12
13    systemd.user.services.hime-daemon = {
14      Unit = {
15        Description = "Hime input method editor";
16        PartOf = [ "graphical-session.desktop" ];
17      };
18      Service.ExecStart = "${pkgs.hime}/bin/hime";
19      Install.WantedBy = [ "graphical-session.target" ];
20    };
21  };
22
23}