-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Infinite recursion after updating to 17.03 #24170
Comments
@wizeman Yes that is probably my fault. As far as I can see there is no good way to make this work as is, sorry :/. While The proper solution then is to move |
This should really be fixed, because I think most NixOS configurations on ARM machines contain the line above, so when people upgrade to NixOS 17.03 they will run into this problem (and may not be able to figure out what's going on). In the meantime, in case other people run into this issue, a workaround is to change the following line:
... into:
|
I'm seeing this issue after #24610, but now you have to import from For future humans, the workaround now looks like this:
|
@eqyiel I think you copied the old one by mistakte? Now the workaround would be {
nixpkgs.config.platform = (import <nixpkgs/lib/systems/platforms.nix>).raspberrypi2;
} # N.B. wrote `examples.nix` before, which is different But that shouldn't be necessary: { lib, ... }:
{
nixpkgs.config.platform = lib.systems.examples.raspberrypi2;
} should work. |
@Ericson2314 you're right, I mean to say that the workaround is like this:
I'm not really sure what I'm doing though, I just started with the configuration example here. I'll try your suggestion as soon as I can and see what happens. Edit: linked to the wrong wiki, configuration example is here |
Ah yes, it's still |
Yep, you can now just use
I'll see if I can update the wiki. |
Issue description
When trying to update to NixOS 17.03, I am getting an infinite recursion while evaluating the configuration of my Raspberry Pi machine:
Steps to reproduce
The problem appears to be related to the following highlighted portion of my
configuration.nix
, since the infinite recursion disappears if I remove this option:It appears that at least one other user may have ran into this issue as well, according to #22014 (comment)
@Ericson2314: do you think this problem may have been introduced with #22107?
Technical details
The text was updated successfully, but these errors were encountered: