error: A definition for option `home-manager.users.nahida.home.sessionVariables.GTK_IM_MODULE' is not of type `string or path or signed integer or floating point number'. Definition values:
- In `/nix/store/1bgg986an8rjw90map6xswphc82zxcrm-source/home-manager/nahida/programs/fcitx5': null
I also tried use builtins.removeAttrs to remove GTK_IM_MODULE in home.sessionVariables:
The reason why you get infinite recursion is because you are using config.home.sessionVariables to define home.sessionVariables, which is obviously a circular reference.
As far as I know, the way that lists are concatenated using the default list type merge, there’s no way to omit an item from the list.
One potential solution would be to set it to an empty string, like:
But it does make me wonder if that’s the problem. Is it possible that GTK_IM_MODULE is being set somewhere else? It’s possible to check what your configuration looks like. If you’re using flakes on NixOS, here’s an example of how that might look: