I’d like it to work nicely with IDE(s) such as WebStorm. What’s idiomatic way to do it in NixOS?
Auto-downloaded Node.js is not working, and gives error:
❯ which node
/home/miroslav/.config/JetBrains/WebStorm2025.1/node/versions/20.15.0/bin/node
❯ node
Could not start dynamically linked executable: node
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
And, therefore automatic project setups via IDE with its auto-downloaded Node.js don’t work.
So far, I have been using per-project nix shells. And, it mostly works well.
However, it requires some amount of boilerplate to setup, and it’s a developer’s OS specific setup.
And, I’m wondering whether there’s some “convention over configuration” approach, that picks up versions automatically from .nvmrc
, .npmrc
…
What do you use? Or, do you go with nix-shells?