-
Notifications
You must be signed in to change notification settings - Fork 68
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
unpinned nixpkgs-unstable channel new revision downloads although I pinned nixpkgs in my shell.nix file #1401
Comments
If the revision is pinned, then it should not have been downloading anything other than the pinned version. If you have a shell.nix handy, I could take a look at why that's not doing what you expected. |
@cole-h thanks for the reply. I added my shell.nix file in the description above. I forget to mention that the shell loads with nix-direnv installed with home-manager. There might be unpinned usage of nixpkgs in those tools. I'll have a further look in the debug log to locate such usage. |
I added a log section in the description above for further details. |
Ok I think I found a possible reason. From
With the defaults from the installer, Is this |
Closing the issue as this is expected behavior. Can serve as input for beginner experience discussions. |
I'm new to nix and am interested in it for portable dev envs.
I started with the detsys nix installer and am running macos 15.1.1. I'm working a lot in large repositories and found NixOS/nix#6530 . This performance issue makes flakes unsuable for me for devenvs source controlled together with my work projects.
I fell back to classic
shell.nix
. Downloading newer versions of nixpkgs is very slow (around ~5minutes, a macos issue?) so I'm pinning the nixpkgs revision in our shell.nix. Despite that, new revisions from the channel nixpkgs-unstable were downloaded regularly, making for a poor experience. I resolved the issue by removing theextra-nix-path
section innix.conf
, more by trial and error than understanding that configuration setting.Not downloading latest revisions of nixpkgs-unstable in pinned shell.nix by default would make for a better experience.
shell.nix
Problem reproduced at 2025-01-29T21:00, with this relevant log section for the command
nix-shell --debug my-project/shell.nix
The text was updated successfully, but these errors were encountered: