Hacker News new | ask | show | jobs
by TremendousT 3036 days ago
Heh- after a many years haitus from running any kind of UNIX/Linux at home, I was thinking about installing a Linux based distro and NixOS was near the top of my list to try. How does this 2.0 Nix release effect a new install of NixOS- should I wait a bit for a corresponding overhaul of NixOS to come out? I suspect theoretically it's not necessary, but wondering if NixOS will be tracking this Nix release in some way shortly... Anyone know?
2 comments

I upgraded my personal laptop to NixOS 18.03 (currently still nixos-unstable; the release branch hasn't been cut) a week ago and I've had no problems

You can switch which version of Nix you're using whenever you want, and you can install multiple versions of Nix side-by-side if you want to, just like with any other package. To install Nix 2.0 on an older release of Nixpkgs/NixOS, just use the package `nixUnstable`. You can install it with `nix-env` if you want to try it out right now.

The only real differences between a typical upgrade and upgrading between releases are:

1. You'll need more storage space for the course of the upgrade, because most of your dependencies have been updated.

2. You might have to change your config up a little, because a few packages have been removed, renamed, or are out of date.

You still get all the nice rollback features that you're used to, and if Nix 1.x is part of your old system profile and 2.0 part of your new one, when you roll back, Nix will roll back, too.

To more directly answer your question: NixOS 18.03 will indeed include Nix 2.0.

Thanks.

Is there any idea about the release date for 18.03 (or 18.0X, whatever is 2.0 based)?

.03 means March, and that's as much as I know.
Yes, NixOS 18.03 will be released soon, featuring Nix 2.0. You can still install the current 17.09 or unstable and upgrade it later by simply switching your channel.
Great- thanks.