-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Installer doesn't update nixpkgs flake input correctly #204292
Comments
I vote for removing the flake registry, it's an obscure (not properly documented/advertised) feature that users have little control over. Its interface is far less intuitive and discoverable compared to nix-channel. |
That wouldn't work and we must keep some variant of it because otherwise
I strongly disagree with this. I have seen many people that struggle with managing channels and especially the root fallback channel and often forgetting that it exists and needs to be updated. The underlying issue here is that the flake template defaults to nixpkgs and not nixos-unstable or nixos-stable. Also the template fails to explain that with a comment. Generally the template is very bare and almost the bare minimum you need to work and it should be improved a lot. |
I agree that the use of TLDR: it should be the system flake controlling the content of the system wide flake registry, not the other way around. |
Let's defer a removal from Nix to NixOS/nix#7422 We can discuss how Nixpkgs/NixOS do / do not use the registry here.
Let's continue this in the nix issue, where I've watered it down to removing the system registry.
Clearly the system registry and nix-channel were cut from the same cloth. Which one is worse is subjective, but they're both bad.
This wouldn't solve the issue that the installer's system flake registry tries to solve. If the installer doesn't specify anything in its flake registry, the installer and At that point, what would be the purpose of even having a registry entry?
It would still be an implicit magical override that makes the
I agree, but this again makes the flake registry useless, and it doesn't force "correct" use. |
Then it would work different between nixos and none nixos systems which is also not great.
One improvement I would do. |
I cannot comment on none nixos setup, but can we make |
Describe the bug
Weird input resolution behavior that's uncharacteristic for a distro that emphasizes being reproducible and boring.
Steps To Reproduce
Steps to reproduce the behavior:
nix flake init
in/etc/nixos
nixosConfigurations."nixos" = nixpkgs.lib.nixosSystem { modules = [ ./configuration.nix ]; }
nixos-rebuild switch
nix flake lock --update-input nixpkgs
to update the graphics driverExpected behavior
At (6), do not upgrade to nixos-unstable.
At (9), do not downgrade to the installer nixpkgs
Suggested solution
Remove the flake registry from NixOS to solve (9)
Remove the flake registry from Nix, so that the user must specify the channel, solving (6) and (9).
Screenshots
Additional context
Notify maintainers
Metadata
NixOS 22.11 minimal ISO
Nix 2.11.0
Nix 2.11.1
The text was updated successfully, but these errors were encountered: