Skip to content

Add substitutor suggestion to nix flake#69

Open
fkz wants to merge 1 commit intomainfrom
nix-substitutor
Open

Add substitutor suggestion to nix flake#69
fkz wants to merge 1 commit intomainfrom
nix-substitutor

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