57 points · by todsacerdoti · 3y ago · 6 comments
> Devbox is a command-line tool that lets you easily create isolated shells for development
it uses nix, and they just added
`devbox global`
> Devbox Global allows you to add packages to a global devbox.json. This is useful for installing a standard set of tools you want to use across multiple Devbox Projects. You can also use Devbox Global to install and manage packages on your Host OS, as a substitute for tools like brew or apt-get.
The better way is to use nix-shell -p firefox.
Julia's write-up is terrific, otherwise.
I'd put that down to because you either didn't understand the consequences of running the command, or forgot you ran the command and so later on when things go weird, it causes confusion. -- e.g. for me, I initially had run `# nix-env -iA nixpkgs.firefox`; later, I was confused why firefox was installed, even though it wasn't installed in my profile at all.
I think the risks of `nix-env -i` are overstated, and over-repeated without explanation. Albeit, it is foot-gun-ish enough that it's worth at least echoing "nix community frowns upon its usage".