Can you make sure your GIMP is from the same channel revision as your underlying system? For example, you are not using GIMP from 20.03 installed by nix-env?
Yes. Nix and Nixpkgs try very hard to make everything hermetic but unfortunately some libraries are inherently stateful or rely on global data.
We have managed to make packages built against fontconfig from recent revisions of 20.03, 20.09 and nixos-unstable compatible with each other but some older revisions (this was fixed in September on 20.03) do not contain our compatibility patches so programs based on those will cause issues.
It is generally a good idea to use the latest revisions of nixos-unstable and nixos stable branches, which are least likely to have incompatibility issues like this.