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 substitutor suggestion to nix flake #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

fkz
Copy link
Member

@fkz fkz commented Sep 18, 2023

I'm not sure if we should add this. When using this flake, you will get a suggestion to add the resp binary cache.

I'm not sure if we should add this. When using this flake,
you will get a suggestion to add the resp binary cache.
@Toxaris
Copy link
Member

Toxaris commented Sep 18, 2023

What is the effect of accepting the suggestion? I guess the local nix will download from the cache that is filled by the github action?

@fkz
Copy link
Member Author

fkz commented Sep 18, 2023

Yes, if your user is authorized to do so. In a multi-user nix installation, you may not even have the right to do so, I'm getting this warning even after accepting:

$ nix run github:potsdam-pnp/pf2e-cards/nix-substitutor
warning: ignoring untrusted substituter 'https://potsdam-pnp.cachix.org', you are not a trusted user.
Run `man nix.conf` for more information on the `substituters` configuration option.

So I think you need to configure this as a trusted substitutor somewhere as well.

@Toxaris
Copy link
Member

Toxaris commented Sep 18, 2023

Yeah just run into the same. I decided to sudoedit /etc/nix/nix.conf and add myself into the trusted users list. Then I had to jump through some hoops to restart the nix daemon, probably because I'm a noob and don't know how to "just restart" it :(

But now it seems to work.

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