Using the Julia VScode extension on NixOS

Similar questions have been asked a number of times in the forum, but mostly for Windows and Mac users. I am on the NixOS unstable flake, using Julia 1.8.5 and VScode 1.75.1. I am getting this error when I open any Julia file:

Could not start the Julia language server. Make sure the `julia.executablePath` setting is valid.

I already set the executable variable to /home/loren/.nix-profile/bin/julia, and I am sure that is the right PATH, still the error persists. Does anyone have experience with NixOS and Julia, or how this problem could be solved?