Today I’ve been struggling to get my site up off the ground, because I need webpack with some pretty specific configuration and plugins, and I want to use nix flakes to declaratively and reproducibly manage those plugins. Once I created my package.json, I ran node2nix to no end; I was then unable to figure out how to create a simple devShell with all my packages in it that I could enter with nix develop. How do I create a flake for node2nix’s shell?
Shell Attribute Not Found
The Problem
Today I’ve been struggling to get my site up off the ground, because I need webpack with some pretty specific configuration and plugins, and I want to use nix flakes to declaratively and reproducibly manage those plugins. Once I created my package.json, I ran node2nix to no end; I was then unable to figure out how to create a simple devShell with all my packages in it that I could enter with nix develop. How do I create a flake for node2nix’s shell?
Attempted Solutions
Here’s the
flake.nix
file I’m using:and the
shell.nix
: