Why is nodejs not in nix-store query output?

Hi, I installed nodejs and it’s available as a binary:

$ which node
/nix/store/72m3szv59j74b12dmicmayvvlikh65qc-nodejs-22.2.0/bin/node

But when I query the current system with nix-store, it doesn’t show up:

$ nix-store -qR /run/current-system/sw | grep node

Why is it not showing up? It works fine for other packages in my flake (pkg-config, gcc, gtk3, webkitgtk)

How did you install nodejs? Generally, only stuff installed through environment.systemPackages will end up in /run/current-system/sw.

Thanks! I installed it in a flake, I guess that’s why it doesn’t show up.

What I’m trying to figure out is: I have an application that requires dependency X (a library, so there is no binary i can execute to check it). Is there a command I can run to check if it’s installed? If /run/current-system/sw will show me the systemPackages, which path can I use in a flake devshell?