2020-04-24 23:36:52 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
2024-07-27 06:49:29 +00:00
|
|
|
let
|
|
|
|
imcfg = config.i18n.inputMethod;
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
{
|
2024-07-27 06:49:29 +00:00
|
|
|
config = mkIf (imcfg.enable && imcfg.type == "nabi") {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 &";
|
|
|
|
};
|
|
|
|
}
|