nixpkgs/nixos/modules/i18n/input-method/hime.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
402 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2020-09-16 16:01:57 +00:00
with lib;
let
imcfg = config.i18n.inputMethod;
in
2020-09-16 16:01:57 +00:00
{
config = mkIf (imcfg.enable && imcfg.type == "hime") {
i18n.inputMethod.package = pkgs.hime;
2020-09-16 16:01:57 +00:00
environment.variables = {
GTK_IM_MODULE = "hime";
QT_IM_MODULE = "hime";
XMODIFIERS = "@im=hime";
};
services.xserver.displayManager.sessionCommands = "${pkgs.hime}/bin/hime &";
};
}