Fcitx5 issues on startup

Hi folks!

I’m a newbie to NixOS and i’m trying to setup a Surface Go 2 for note-taking and ricing. I’m using Niri (Wayland) and trying to switch from Alacritty to Ghostty. The thing is, GTK doesn’t work with dead keys with their latest changes and i’m using a es_ES layout.

Reading recommendations, i tried installing fcitx5 to fix the issue, but i’m running into 2 scenarios:

  1. fcitx5 service doesn’t start on login.
  2. When enabling it via i18n.inputMethod:
    • Waybar fails to launch.
    • Ghostty take ages to open,
    • Dead keys still not working.

Current config (home manager):

{ config, lib, pkgs, … }:

with lib;

let
  cfg = config.homeModules.fcitx5;
in {
  options.homeModules.fcitx5 = {
    enable = mkEnableOption “enable fcitx5 module”;
  };

  config = mkIf cfg.enable {
    i18n.inputMethod = {
      enable = true;
      type = “fcitx5”;

      fcitx5 = {
        addons = with pkgs; [ fcitx5-gtk ];
        waylandFrontend = true;

        settings = import ./settings.nix;
      };
    };
  };
}

settings.nix is just a file containing config generated by configtool.

What i’ve tried:

  • Using this as home-manager module.
  • Moving it into system config.
  • Mixing system enable + home manager config.

How can i check for errors so i can locate the issue? Anyone has been in this situation or similar?

For the 1st issue, as you are running Niri which is a WM, you may try services.xserver.desktopManager.runXdgAutostartIfNone = true; as suggested in nixos wiki.

Hi, thanks for the reply <3

I’ve tried, but nothing changes :frowning:

Also it seems that with enable and type options, nixos-rebuild have conflicts with previous fcitx config file, giving me errors. If i delete it, i run into scenario 2 again :thinking: