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

Upstream nixpkgs? #12

Closed
pio2398 opened this issue Feb 13, 2020 · 4 comments
Closed

Upstream nixpkgs? #12

pio2398 opened this issue Feb 13, 2020 · 4 comments

Comments

@pio2398
Copy link

pio2398 commented Feb 13, 2020

Is your feature request related to a problem? Please describe.
Can I use upstream nixpkgs? Branch release-20.03 now have flake.nix. I tried to switch to it but stuck on error: "flake-registry.json' has unsupported version 2".

@nrdxp
Copy link
Collaborator

nrdxp commented Feb 14, 2020

Yeah I was having the same issue, basically it has to do with the recent merge and some commit updates that change the registry version. If you were using this before the merge it will give you the error. Simplest fix is to simply change the nixpkgs input manually inputs.nixpkgs.url = "github:NixOS/nixpkgs"; for a single update.

Then after the update finishes, you could just drop the input all together and just use nixpkgs from registry, since it is now pointing to upstream. I'm gonna be updating it myself in a bit, my machine is in the middle of updating right now. Once it is done, I'll push the commit.

@pio2398
Copy link
Author

pio2398 commented Feb 14, 2020

Changing inputs.nixpkgs.url don't solve problem in my case. I had to remove inputs.home.url to build.
If I unintended correctly your fork of home-manager is depending on your fork of nixpkgs.

@pio2398
Copy link
Author

pio2398 commented Feb 16, 2020

Thanks to this commit: NixOS/nixpkgs@e421d74 I was able to update the system to 20.03 but without home-manager.

How to update:

  1. Change inputs.nixpkgs.url to "github:NixOS/nixpkgs/release-20.03";
  2. Remove home-manager from config (I wasn't able to fix it :( )
  3. Mount /nix/store in rw mode mount -o remount,rw /nix/store
  4. Replace local cache of flake-registry.json (in my case nix/store/a4db1w50nsqy79xv072ijf5pi4x0g4cl-flake-registry.json) with version 1 (last working version 1 https://raw.githubusercontent.com/NixOS/flake-registry/5bfb0451bf1d527916b28112937da9382f4ecf26/flake-registry.json)
    4.Update

Only left problem is broken home-manager.

@zimbatm
Copy link

zimbatm commented Feb 17, 2020

Commit dd7f6b0c6b461dbc69c1b11ebcf1c8ea5b6160ec from nixpkgs contains the update nixFlake version that supported the registry v2 format.

@pio2398 pio2398 closed this as completed Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants