Lurker News
Devbox is a command-line tool that lets you easily create isolated shells and containers. You start by defining the list of packages required by your development environment, and devbox uses that definition to create an isolated environment just for your application.

In practice, Devbox works similar to a package manager like yarn – except the packages it manages are at the operating-system level (the sort of thing you would normally install with brew or apt-get).
See it in action: https://youtu.be/WMBaXQZmDoA

Comments (185) 47 threads

Earlier comments
abiro1 reply#
Wondering how well it integrates with IDEs. Anyone tried it with Intelllij?
ParetoOptimal#
For plain Nix the universal work around is to run your editor inside of the nix-shell.

A better option iis a direnv plugin that modifies environmental variables inside of your editor to match your nix shell.

alecthomas2 replies#
No, it uses native Nix directly on your machine - Linux, Mac, or Windows. Its integration with Docker is that it can _build_ Docker images from the Nix packages in your "devbox".
Foxboron#
It's the same abstraction layer though. The implementation for all three is bound to be different.
shirogane86x2 replies#
I'm assuming for windows it only works in WSL2? cause last time I checked nix wasn't compatible with native windows development, sadly
alecthomas#
Yeah I assume so too, but I'm not sure.
ParetoOptimal#
Native windows support is or at least was being worked on.

Wsl/nix should work.

gaocegege#
The devbox is awesome. We use https://github.com/tensorchord/envd to develop AI/ML applications.

And it will be great if users can build and deliver devbox images with a CI/CD systems like GitHub Action.

tambourine_man1 reply#
I think we’ve all been wanting something along those lines for a while. I hope this is it.

Docker is only lightweight in Linux.

abathur1 reply#
I paid the ~cost of learning Nix mainly to get out of needing VMs for daily dev work on macOS. I won't sugar-coat those costs, but I'm glad I did.
tambourine_man#
I keep thinking of rolling a simpler solution with chroot + something something, but if someone is able to hide the complexity of Nix well enough, sign me up. Those abstractions tend to be leaky though.

Load more comments