You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
563 B
23 lines
563 B
{ config, pkgs, lib, ... }:
|
|
|
|
with lib; {
|
|
config = mkIf (config.i18n.inputMethod.enabled == "nabi") {
|
|
i18n.inputMethod.package = pkgs.nabi;
|
|
|
|
home.sessionVariables = {
|
|
GTK_IM_MODULE = "nabi";
|
|
QT_IM_MODULE = "nabi";
|
|
XMODIFIERS = "@im=nabi";
|
|
};
|
|
|
|
systemd.user.services.nabi-daemon = {
|
|
Unit = {
|
|
Description = "Nabi input method editor";
|
|
PartOf = [ "graphical-session.desktop" ];
|
|
};
|
|
Service.ExecStart = "${pkgs.nabi}/bin/nabi";
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
|
|
}
|
|
|