Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Impossible to easily upgrade NixOS from <=17.09 to 18.09 #46387
Since 18.09 now forces people to update their Nix version to 2.0 (see #45779), only people running a 18.03 system will actually be able to smoothly upgrade with the default update procedure (upgrade channel, nixos-rebuild). Reason being that in versions <=17.09 the default Nix daemon version is <2.0, which means that even if you install a Nix 2.0 client, it won't succeed due to the daemon/client mismatch (see #42319).
Preferably both of those
In my opinion we should revert the 2.0 forcing anyways, there's just too many problems with 2.0 yet to be addressed. There's been already 2 people in IRC with super annoying Nix upgrade process bugs since the bump 2 weeks ago.
As far as I recall, it is also not possible to upgrade to 18.03 from 17.03 without going though 17.09 first, since the Nix 1.11 in 17.03 is too old to evaluate 18.03, so this isn't a completely unusual situation.
I do agree that it's nice to facilitate a good upgrade path for people who still use unsupported versions of NixOS.
I just booted up a 17.03 VM and ran:
And it worked just fine. I believe it evaluated the