Use node2nix in configuration.nix or shell.nix

Hi, I’d like to use a node2nix package (which provides a command line utility) in a declarative way (instead of installing procedurally with nix-env)

If I understand correctly, all I need to do is use

(pkgs.callPackage ./default.nix {}).shell.nodeDependencies

but when I try to execute, it says that the attribute shell is missing?

What is the best (working) way to include a node2nix package in configuration.nix or shell.nix?
Thanks in advance!

1 Like

Any chance you could share the relevant bits of your config, as well as the paths they’re in? A WIP commit on GitHub or such would be easiest if you have your config on the public web :slight_smile:

This should work, provided it’s used correctly.

Hosted by Flying Circus.