-
Notifications
You must be signed in to change notification settings - Fork 6
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
[solved] nix build error: 'infinite recursion encountered' #127
Comments
Thanks for reaching out! Can you show a little more about how you import the configuration? |
Hi, @a-kenji. I just pushed my nixos configuration to the internet (I'm a beginner TBH). Here are the relevant parts:
If I un-comment the commented parts in third file, then the error occurs. |
⬇️⬇️⬇️ WORKAROUND ⬇️⬇️⬇️ We have had this happen a couple of times now. The problem is that the centerpiece module is imported in a long chain of imports. Nix seems to have an internal threshhold of import calls after which the evaluation is terminated with 'infinite recursion encountered'. The workaround for this issue is pulling the centerpiecemodule import higher up in the import chain. For starters, try importing the centerpiece module directly in your flake. If that works, push it down one level after another ;). |
⬇️⬇️⬇️ Find the workaround for this issue in the comment below ⬇️⬇️⬇️
Command:
sudo nixos-rebuild switch --show-trace
Here is the error text: https://paste.sr.ht/~meow_king/213fa6661d111fdb8df3f724ed221d81ced8845f
My configuration:
And here is the content of
centerpiece_config.nix
:The text was updated successfully, but these errors were encountered: