mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-20 07:12:36 +00:00
im/fcitx5: use home.sessionSearchVariables for QT_PLUGIN_PATH
This commit is contained in:
parent
277eea1cc7
commit
601f8d073c
1 changed files with 11 additions and 8 deletions
|
@ -38,16 +38,19 @@ in {
|
|||
config = lib.mkIf (im.enabled == "fcitx5") {
|
||||
i18n.inputMethod.package = fcitx5Package;
|
||||
|
||||
home.sessionVariables = {
|
||||
home = {
|
||||
sessionVariables = {
|
||||
GLFW_IM_MODULE = "ibus"; # IME support in kitty
|
||||
XMODIFIERS = "@im=fcitx";
|
||||
QT_PLUGIN_PATH =
|
||||
"$QT_PLUGIN_PATH\${QT_PLUGIN_PATH:+:}${fcitx5Package}/${pkgs.qt6.qtbase.qtPluginPrefix}";
|
||||
} // lib.optionalAttrs (!cfg.waylandFrontend) {
|
||||
GTK_IM_MODULE = "fcitx";
|
||||
QT_IM_MODULE = "fcitx";
|
||||
};
|
||||
|
||||
sessionSearchVariables.QT_PLUGIN_PATH =
|
||||
[ "${fcitx5Package}/${pkgs.qt6.qtbase.qtPluginPrefix}" ];
|
||||
};
|
||||
|
||||
systemd.user.services.fcitx5-daemon = {
|
||||
Unit = {
|
||||
Description = "Fcitx5 input method editor";
|
||||
|
|
Loading…
Add table
Reference in a new issue