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

Add nrdxp cachix to substituter flake list #71

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

blaggacao
Copy link
Contributor

courtesy of: NixOS/nix@343239f

@nrdxp
Copy link
Collaborator

nrdxp commented Jan 10, 2021

What is the benefit of this over the current cachix configuration?

@blaggacao
Copy link
Contributor Author

blaggacao commented Jan 10, 2021

What is the benefit of this over the current cachix configuration?

Between the two api choices (clasical & flake), I'd argue there might be a slight bias towards choosing the flake-native api.

No materialized bottom-line benefit other than "api consistency" (of some sort).

@blaggacao
Copy link
Contributor Author

blaggacao commented Jan 10, 2021

No materialized bottom-line benefit other than "api consistency" (of some sort).

I'm currently not so sure about this, any more. after adding a couple of substituters (including the official nix cache and yours) in my flake, it seems that flk iso doesn't attempt to build glibc (and similar low level stuff) any more...

No clear picture I have, unless that the API proposed herein will be the future.

@nrdxp
Copy link
Collaborator

nrdxp commented Jan 12, 2021

If I understand this correctly, it looks like this allows the usage of binary cache for any user, not just those who have it setup in their system.

@blaggacao
Copy link
Contributor Author

blaggacao commented Jan 12, 2021

If I understand this correctly, it looks like this allows the usage of binary cache for any user, not just those who have it setup in their system.

Correct, it is kind enough to ask:

$ nix develop
do you want to allow configuration setting 'substituters' to be set to 'https://cache.nixos.org/ https://nrdxp.cachix.org https://thefloweringash-armv7.cachix.org' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? N

But there is a caveat:
https://github.com/numtide/flake-utils/pull/18/files#diff-79c5531512c8fa0e4522e5d82d96fc2d93b75040e0a197cb0a94c7cb0b2c19b3R96

@nrdxp
Copy link
Collaborator

nrdxp commented Jan 12, 2021

We'll probably want to leave this open til the fate of that PR is decided.

@nrdxp
Copy link
Collaborator

nrdxp commented Jan 18, 2021

I'm gonna go ahead and merge this now that #58 is resolved, it'll be much more useful.

@nrdxp nrdxp merged commit 8ce3db6 into divnix:template Jan 18, 2021
@blaggacao blaggacao deleted the da-substituters branch January 19, 2021 01:01
@blaggacao
Copy link
Contributor Author

blaggacao commented Jan 20, 2021

I figured this does not actually seem work in my current nix version. Don't know what's happening.

Trying to share a local store, like so

  • nix --option substituters "http://myip:5000" develop
    I also had to do
  • nix --option substituters "http://myip:5000" --options require-sig false develop
    for what it's worth.

Maybe it's due to the fact that signatures are not verified yet?

It would be somehow cool if we could enable sshServe between hosts of the same deployment and install them mutually as binary caches. Especially on a low bandwidth network such decentralized approach is actually appealing.

blaggacao pushed a commit to blaggacao/devos that referenced this pull request Jul 6, 2021
Add nrdxp cachix to substituter flake list
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

Successfully merging this pull request may close these issues.

2 participants