mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 20:53:14 +00:00
23 lines
563 B
Nix
23 lines
563 B
Nix
{ 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" ];
|
|
};
|
|
};
|
|
|
|
}
|