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-install: use mountpoint as store #99493
Conversation
Otherwise, it's possible building a flake may cause the live CD to run out of memory.
1d65faa
to
3bbe4c3
Compare
Please forgive my incompetence, but what's the simplest way to test this from the live CD? EDIT: I figured it out, built a new ISO. I now get the following error:
I believe this is linked to NixOS/nix#4081. |
as a workaround you can try with |
Yes, that works. |
@ncfavier Glad you got it sorted out. Just to make sure I'm understanding correctly: does this fix the issue you were having? |
Yes, I was able to install the flake after adding |
Still, the requirement of |
Backported to 20.09 in #99690. |
I'm confused, why are we merging/backporting this without |
We have to fix #99114 |
But I do believe the error here |
Just to be clear, the flake I was trying to install doesn't rely on impurities and so shouldn't have needed |
There is a bug opened in nix NixOS/nix#4081, maybe leave your two cents there. As it is an experimental feature we're just figuring out issues like these. |
Motivation for this change
nixos-install
would use the ISO's store as opposed to the mountpoint's store (#95194 (comment)). Now, it should properly use the mountpoint's store.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)cc @ncfavier -- if you could, please test if this fixes it for you.