Declared Fcitx5 settings aren't being applied [home-manager]

Here’s the snippet that I use:

  i18n = {
    inputMethod = {
      enable = true;
      type = "fcitx5";
      fcitx5 = {
        ignoreUserConfig = true;
        waylandFrontend = true;
        addons = with pkgs; [
          fcitx5-mozc
        ];
        settings.inputMethod = {
          "Groups/0" = {
            Name = "Default";
            "Default Layout" = "us";
            DefaultIM = "mozc";
          };
          "Groups/0/Items/0" = {
            Name = "keyboard-us";
            Layout = "";
          };
          "Groups/0/Items/1" = {
            Name = "mozc";
            Layout = "";
          };
          "GroupOrder" = {
            "0" = "Default";
          };
        };
        settings = {
          globalOptions = {
            Behavior = {
              ActiveByDefault = true;
            };
          };
        };
        sessionVariables = {
          GLFW_IM_MODULE = "ibus";
          SDL_IM_MODULE = "fcitx";
          XMODIFIERS="@im=fcitx";
          QT_IM_MODULE="fcitx";
          GTK_IM_MODULE="fcitx";
        };
      };
    };
  };

Also, if it matters, I have this chunk added to the wayland.windowManager.sway.extraConfig:

input type:keyboard {
xkb_layout us,ru
xkb_options grp:alt_shift_toggle
}

From what I understand, my problem is quite similar to this one
The problem is that my declared Fcitx5 settings are being ignored.
What I get are the default settings.
And even if I set them manually via fcitx-configtool, they still get reset each time that I turn off the computer.

P.S. Would like to add that I’ve been using the aforementioned code for at least half a year, and it only worked from time to time, which has been driving me crazy.
And what I mean by “time to time” is that sometimes it worked on launch and sometimes not, but recently it completely stopped working.

Help is greatly appreciated.
Please, I beg of you, help me :-)

Here’s extra information:

OS: NixOS 26.11 (Zokor) x86_64
Host: B450M DS3H
Kernel: Linux 7.3.0
Uptime: 1 hour, 32 mins
Packages: 13 (flatpak), 2017 (nix-system), 1762 (nix-user)
Shell: zsh 5.9.2
Display (S27E390): 1920x1080 in 27", 60 Hz [External]
Window Manager: Sway 1.12 (Wayland)
Icons: breeze [GTK2/3/4]
Font: Noto Sans (10pt) [GTK2/3/4]
Cursor: macOS (24px)
Terminal: alacritty 0.17.0
Terminal Font: monospace (11.25pt, Regular)
CPU: AMD Ryzen 5 2600 (12) @ 3.90 GHz
GPU: NVIDIA GeForce GTX 1650 [Discrete]
Memory: 4.45 GiB / 15.56 GiB (29%)
Swap: 161.14 MiB / 12.12 GiB (1%)
Disk (/): 1010.79 GiB / 1.86 TiB (53%) - btrfs
Disk (/home/mustlane/data): 7.89 TiB / 10.83 TiB (73%) - ext4
Local IP (enp5s0): 192.168.0.167/24
Locale: en_US.UTF-8

try remove the ignoreUserConfig?

I thought it meant “ignore the settings declared outside of the nix config” :sob: :sob: :sob:
Yes, you are right. Thank you!