Skip to content
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

How to prioritize magic-nix over flake-defined substituters? #78

Open
locallycompact opened this issue Jun 17, 2024 · 2 comments
Open

Comments

@locallycompact
Copy link

If there are extra-substituters defined in the flake, then nix will prioritize pulling from those and not pull from localhost very often. How can this be overridden?

@cole-h
Copy link
Member

cole-h commented Jun 17, 2024

We could increase the priority (by lowering the value):

I don't remember if it was a conscious decision to make it a lower priority (with a higher value), or if that was just a mistake, though; it may not be that simple.

@dermetfan
Copy link

I was under the impression that the priority is locally forced to 1 here:

.write_all(format!("extra-substituters = http://{}?trusted=1&compression=zstd&parallel-compression=true&priority=1\n", args.listen).as_bytes())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants