Ibus检测不到ibus-libpinyin

亲爱的大佬们,我又来了:我的ibus配置了,但是就是检测不到ibus-libpinyin这个引擎,ibus-setup里也没有,检测ibus和ibus-libpinyin均有进程,下见我的配置文件,我不是特别熟悉nixos,如果哪里写的不好,请稍微耐心的指出,万分感谢!

{ config, pkgs, lib, ... }:
{
  imports = [ ./hardware-configuration.nix ];
  # Basic system
  networking.hostName = "nixos-laptop";
  time.timeZone = "Asia/Shanghai";
  i18n.defaultLocale = "zh_CN.UTF-8";
  system.stateVersion = "25.11";
  # 用户帐户
  users.users.wen = {
    isNormalUser = true;
    description = "wen";
    home = "/home/wen";
    extraGroups = [ "wheel" "networkmanager" "audio" "video" ];
    initialPassword = "3014";
  };
  # Sudo
  security.sudo = {
    enable = true;
    wheelNeedsPassword = true;
  };
  # Networking
  networking.networkmanager.enable = true;
  services.openssh.enable = true;
  services.openssh.settings = {
    PasswordAuthentication = true;
  };
  # Desktop: Hyprland with SDDM
  services.xserver.enable = true;
  services.displayManager.sddm.enable = true;
  services.displayManager.defaultSession = "hyprland";
  # GPU / OpenGL
  hardware.opengl = { enable = true; extraPackages = with pkgs; [ ]; };
  # Allow unfree packages
  nixpkgs.config = { allowUnfree = true; };
  hardware.enableRedistributableFirmware = true;
  # Hyprland
  programs.hyprland = {
    enable = true;
    xwayland = {
      enable = true;
    };
  };
  # Sound (PipeWire) - 完全保留
  services.pipewire.enable = true;
  hardware.pulseaudio = { enable = false; };
  # Power for laptops
  services.tlp.enable = true;
  # Firewall
  networking.firewall.enable = true;
  # Bootloader
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  # System packages
  environment.systemPackages = with pkgs; [
    # Core
    vim git wget curl htop neofetch
    # Terminal + launcher
    alacritty rofi
    # Wayland desktop
    hyprland waybar mako swww copyq nautilus gedit qt6.qtwayland qt5.qtwayland
    # Clipboard / screenshot
    wl-clipboard grim slurp
    # Desktop portal
    xdg-desktop-portal xdg-desktop-portal-wlr
    # Multimedia - 完全保留PipeWire
    pipewire wireplumber mpv ffmpeg vlc
    # Input Method - 正确的 IBus Rime 配置
    ibus
    ibus-engines.libpinyin
    #librime-data
    #librime-data-clover
    ibus-with-plugins  # 包含所有插件支持
    pkgs.gnome-control-center  # 用于图形化配置
    # Fonts
    noto-fonts-cjk-sans noto-fonts-cjk-serif sarasa-gothic
    font-awesome
    nerd-fonts.symbols-only
    material-design-icons
    # Browsers & packaging
    firefox google-chrome flatpak wechat-uos qq wpsoffice
    # Utilities
    pavucontrol imagemagick obs-studio btop
  ];
  # IBus Rime Configuration - 正确语法
  i18n.inputMethod = {
    enabled = "ibus";
    ibus = {
      engines = with pkgs.ibus-engines; [
        libpinyin
      ];
   # enable = true;
    };
  };
  # Input method environment variables
  environment.sessionVariables = {
    GTK_IM_MODULE = "ibus";
    QT_IM_MODULE = "ibus";
    XMODIFIERS = "@im=ibus";
    SDL_IM_MODULE = "ibus";
    LANG = "zh_CN.UTF-8";
    QT_QPA_PLATFORMTHEME = "qt5ct";
  };
  # Enable dconf service (required for IBus)
  programs.dconf.enable = true;
  services.dbus.enable = true;
  # Fonts
  fonts.fonts = with pkgs; [ noto-fonts-cjk-sans noto-fonts-cjk-serif sarasa-gothic ];
  # Disable automatic system upgrades
  system.autoUpgrade.enable = false;
  # Remove kimpanel and KDE packages (not needed for Hyprland + IBus)
  # Remove these lines:
  # gnomeExtensions.kimpanel
  # kdePackages.plasma-workspace
  # libsForQt5.plasma-framework
  # libsForQt5.kwayland
  # Autostart
  xdg.autostart.enable = true;
}