mirror of
https://github.com/nix-community/home-manager
synced 2024-12-05 01:19:46 +01:00
24 lines
563 B
Nix
24 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" ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|