From 42653ac6da175b3ce48d5c0b6994211b158cf446 Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Mon, 7 Apr 2025 15:07:41 +0200 Subject: [PATCH] fix fcitx5 japanese input --- configuration.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7c4221f..9d808c9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -66,12 +66,14 @@ in }; i18n.inputMethod = { - enabled = "fcitx5"; + enable = true; + type = "fcitx5"; fcitx5.addons = with pkgs; [ fcitx5-rime fcitx5-mozc fcitx5-gtk fcitx5-configtool + libsForQt5.fcitx5-qt ]; }; # i18n.inputMethod.fcitx5.engines = with pkgs.fcitx-engines; [ mozc ]; @@ -113,6 +115,8 @@ in exportConfiguration = true; + desktopManager.runXdgAutostartIfNone = true; + windowManager = { xmonad = { enable = true; @@ -245,7 +249,7 @@ in { udisks # javaPackages.openjfx17 libGL - # gtk3 + gtk3 zathura libgcc gcc @@ -257,6 +261,8 @@ in { gamemode alsa-utils acpi + # fcitx5 + # fcitx5-configtool ]); programs.steam.enable = true; @@ -383,7 +389,14 @@ in { # libvdpau-va-gl # ]; # }; - # environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; # Force intel-media-driver + environment.sessionVariables = { + # LIBVA_DRIVER_NAME = "iHD"; # Force intel-media-driver + GTK_IM_MODULE = "fcitx"; + QT_IM_MODULE = "fcitx"; + XMODIFIERS = "@im=fcitx"; + SDL_IM_MODULE = "fcitx"; + GLFW_IM_MODULE = "ibus"; # Some applications use GLFW + }; services.devmon.enable = true;