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

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

23 lines
400 B
Nix
Raw Permalink Normal View History

2016-02-16 23:01:03 +09:00
{
config,
pkgs,
lib,
...
}:
let
imcfg = config.i18n.inputMethod;
in
2016-02-16 23:01:03 +09:00
{
config = lib.mkIf (imcfg.enable && imcfg.type == "nabi") {
2016-04-04 18:11:20 +09:00
i18n.inputMethod.package = pkgs.nabi;
2016-02-16 23:01:03 +09:00
environment.variables = {
GTK_IM_MODULE = "nabi";
QT_IM_MODULE = "nabi";
XMODIFIERS = "@im=nabi";
};
services.xserver.displayManager.sessionCommands = "${pkgs.nabi}/bin/nabi &";
};
}