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

17 lines
366 B
Nix
Raw Normal View History

2016-02-16 17:01:03 +03:00
{ config, pkgs, lib, ... }:
with lib;
{
2016-02-16 17:10:46 +03:00
config = mkIf (config.i18n.inputMethod.enabled == "nabi") {
2016-04-04 12:11:20 +03:00
i18n.inputMethod.package = pkgs.nabi;
2016-02-16 17:01:03 +03:00
environment.variables = {
GTK_IM_MODULE = "nabi";
QT_IM_MODULE = "nabi";
XMODIFIERS = "@im=nabi";
};
services.xserver.displayManager.sessionCommands = "${pkgs.nabi}/bin/nabi &";
};
}