mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
16 lines
366 B
Nix
16 lines
366 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
{
|
|
config = mkIf (config.i18n.inputMethod.enabled == "nabi") {
|
|
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 &";
|
|
};
|
|
}
|