jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.85k stars 188 forks source link

[Feature Request]: automatically upgrade Nix: the package manager #933

Open mjgallag opened 1 year ago

Lagoja commented 1 year ago

@mjgallag thank you for reporting! Just to clarify -- you're asking for Devbox to update the version of the nix binaries themselves?

mjgallag commented 1 year ago

@Lagoja correct, Devbox automatically installed Nix: the package manager v2.13.3 for me but now Nix: the package manager v2.15 is the current version so I want Devbox to also automatically manage Nix: the package manager upgrades. I assume if I take no manual upgrade action I'll eventually be out of date enough to cause trouble. Thanks!

Loving Devbox so far!

Lagoja commented 1 year ago

Got it, I think this is a great suggestion. We should roll Nix package manager upgrades into Devbox releases when they line up..

bbugh commented 9 months ago

This seems like something you'd want to configure though. Nix is supposed to ensure reproducibility and I don't want the tool I'm using for reproducibility to change itself without asking.

Maybe this is something that could be added to devbox.json as configuration or devbox.lock, or a warning printed to the console (e.g. like yarn and other package managers).

dudicoco commented 2 months ago

@bbugh this also relates to https://github.com/jetify-com/devbox/issues/1371.

Both the devbox version and the nix version should be locked to ensure total reproducibility.