about summary refs log tree commit diff
path: root/nixos/modules/i18n/input-method/nabi.nix
blob: 0eb9a7c825c88139ee949923e374b3dab019107e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, lib, ... }:

with lib;
let
  imcfg = config.i18n.inputMethod;
in
{
  config = mkIf (imcfg.enable && imcfg.type == "nabi") {
    i18n.inputMethod.package = pkgs.nabi;

    environment.variables = {
      GTK_IM_MODULE = "nabi";
      QT_IM_MODULE  = "nabi";
      XMODIFIERS    = "@im=nabi";
    };

    services.xserver.displayManager.sessionCommands = "${pkgs.nabi}/bin/nabi &";
  };
}