How to find GIR directories dynamically?

I have an app that generates types using @ts-for-gir/cli, but there is a problem: it cannot find the paths unless I explicitly specify every one of them as -g flag.

So how could I get all GIR directories in NixOS? I cannot just glob the nix store, right?