devbox icon indicating copy to clipboard operation
devbox copied to clipboard

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

Open mjgallag opened this issue 2 years ago • 5 comments

mjgallag avatar Apr 20 '23 18:04 mjgallag

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

Lagoja avatar Apr 21 '23 16:04 Lagoja

@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!

mjgallag avatar Apr 21 '23 16:04 mjgallag

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

Lagoja avatar Apr 21 '23 18:04 Lagoja

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).

bbugh avatar Sep 14 '23 17:09 bbugh

@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.

dudicoco avatar Apr 18 '24 07:04 dudicoco