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/installer: use the configured nix package for nixos-install #99615
nixos/installer: use the configured nix package for nixos-install #99615
Conversation
cc @ju1m |
I think we made a conscious decision to use Unless I'm mistaken (entirely possible), our ISOs don't use |
OTOH we now have two Nix versions and one of them contains unstable features hidden behind a feature flag, so I agree with @andir here. While I like playing around with flakes and I'm fairly happy that we start to support this in I'm not a RM, but is there anything wrong with shipping another ISO with "experimental stuff" which uses e.g. |
As far as I am concerned add as nixos-install-flaky command that can be enabled via a NixOS option and we enable that in the official install images. I just don't want a second version that'll never be used on my installed systems. |
I'd be fine with a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to request changes, see https://github.com/NixOS/nixpkgs/pull/99615/files#r499779090
The only nix version available in the installer should be the version configure in the module system. If someone needs `nixUnstable` in their `nixos-install` they should probably set the module option and not just add it to the closure.
3cb65cb
to
544059b
Compare
@worldofpeace do you also want this in 20.09? |
Yep, I'd say we for sure need it. |
Motivation for this change
The current state lead to having two version of Nix in each system
closure unless someone defaulted to
nixUnstable
. We should probablyonly pick the package that is actually desired by the user.
If someone needs an exotic installer with
nixUnstable
then they shouldprobably build an image with it for their exotic use case.
Things done
sandbox
innix.conf
on non-NixOS linux)