Csharp-ls won't find dotnet's sdk and runtimes

Hi there folks, did you manage to get csharp-sl to work with nix?
I have lvim installed globally and a csharp project using devenv and when I try to run csharp-ls, i get this

You must install .NET to run this application.

App: /home/casaos/.local/share/lvim/mason/packages/csharp-language-server/csharp-ls
Architecture: x64
App host version: 9.0.4
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=linux-x64&os=debian.11&apphost_version=9.0.4

and using strace, i see that they traverse a few paths and one of those is under $DOTNET_ROOT but on the wrong path, they try /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203/host/fxr/9.0.4/libhostfxr.so instead of /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203/share/dotnet/host/fxr/9.0.4/libhostfxr.so.
an initial fix i did was to link by hand (to test) with sudo ln -s /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203/share/dotnet/host/ /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203/host

It improves a bit but still it cannot find the runtime

You must install or update .NET to run this application.

App: /home/casaos/.local/share/lvim/mason/packages/csharp-language-server/csharp-ls
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '9.0.0' (x64)
.NET location: /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203

No frameworks were found.

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=9.0.0&arch=x64&rid=linux-x64&os=debian.11

And then they try to access /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203/shared/Microsoft.NETCore.App
which then i linked this folder sudo ln -s /nix/store/39xdrjaybz9jpzbc8p2yk9nmz52h3mxa-dotnet-sdk-9.0.203/share/dotnet/shared/ /nix/store/57x15z3f8vhdp2glyxkysrqvvnc773bz-dotnet-sdk-wrapped-9.0.203/shared

should these nix be in the original package? or could it be that csharp-ls is doing something wrong?
the dotnet cli list sdk and runtime work fine