feat(nix): add cachix binary cache to flake

Nix flake [schema] allows for a top level attribute called `nixConfig`.
This allows a flake to extend a users nix for the specific flake.

This lets us add ghostty's binary cache automatically when using the
repo (nix develop, nix build, ...).

[schema]: https://nixos.wiki/wiki/Flakes#Flake_schema
This commit is contained in:
EdenEast
2024-01-04 13:00:45 -05:00
parent 2dc4ed2492
commit fac38a9ea2

View File

@ -62,4 +62,9 @@
# Our supported systems are the same supported systems as the Zig binaries. # Our supported systems are the same supported systems as the Zig binaries.
}) (builtins.attrNames zig.packages)); }) (builtins.attrNames zig.packages));
nixConfig = {
extra-substituters = ["https://ghostty.cachix.org"];
extra-trusted-public-keys = ["ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns="];
};
} }