Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos-rebuild: try to get Nix fallback from new channel first #56115

Merged
merged 1 commit into from Mar 2, 2019

Conversation

matthewbauer
Copy link
Member

@matthewbauer matthewbauer commented Feb 21, 2019

If our old Nix can’t evaluate the Nixpkgs channel, try the fallback
from the new channel /first/. That way we can upgrade Nix to a newer
version and support breaking changes to Nix (like seen in the upgrade
o Nix 2.0).

This change should be backported to older NixOS versions! It would enable users to go from pre-Nix 2.0 NixOS to NixOS requiring 2.0.

Using this patch I was able to update from NixOS 17.09 to NixOS 19.03pre.

If our old Nix can’t evaluate the Nixpkgs channel, try the fallback
from the new channel /first/. That way we can upgrade Nix to a newer
version and support breaking changes to Nix (like seen in the upgrade
o Nix 2.0).

This change should be backported to older NixOS versions!
@matthewbauer matthewbauer changed the title nixos-rebuild: get Nix from new channel nixos-rebuild: try to get Nix fallback from new channel first Feb 21, 2019
@matthewbauer matthewbauer merged commit b0799b4 into NixOS:master Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants