-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
nix-shell -p is broken when using nixpkgs.lib.nixosSystem #318300
Comments
Weirdly enough I can not reproduce this in a local VM? It only seems broken in the AMI? did we break something with |
Debugging further. Somehow this slipped in:
|
This happened after I pushed a flake-built NixOS Config to my machine and it turns out we set this new |
That PR is only supposed to apply when using a flake-based NixOS configuration, and |
Because nixpkgs.lib.nixosSystem is just using flakes on the host system. But that doesn't mean the target system it builds has flakes enabled. (And by default it doesn't). The PR unconditionally sets the setting whether flakes is enabled or not. I think we should make it conditional instead |
Describe the bug
It seems
nix-shell -p
stopped working in 24.05 for me.Steps To Reproduce
nixpkgs.lib.nixosSystem
nix-shell -p aws
nix-shell -p aws --show-trace
and the stack trace becomes shorterExpected behavior
works
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: