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