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

Offer cachix binary cache via flake.nix #966

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Offer cachix binary cache via flake.nix
I noticed that helix does it:

https://github.com/helix-editor/helix/blob/master/flake.nix#L176

and wanted to try it.

There are some problems with it though:

* It asks on `nix develop` if you want use these settings and if you
  want to remember them. Not a problem on it's own but ...
* If you are using `direnv` it will just get stuck, as direnv doesn't
  allow stdin from the subcommands it starts (or something like that).
  You have to ctrl+c it, and then run `nix develop` manually and make
  it remember settings. Papercut.
* On my system I get `warning: ignoring untrusted substituter 'https://fedimint.cachix.org'`
  and I'm not sure what is wrong.
  • Loading branch information
dpc committed Nov 23, 2022
commit 0a1096fff83ca394350c82e9a6f1ba8905b808da
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -916,4 +916,9 @@
};
};
});

nixConfig = {
extra-substituters = [ "https://fedimint.cachix.org" ];
extra-trusted-public-keys = [ "fedimint.cachix.org-1:FpJJjy1iPVlvyv4OMiN5y9+/arFLPcnZhZVVCHCDYTs=" ];
};
}