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_schemapull/1211/head
parent
2dc4ed2492
commit
fac38a9ea2
|
|
@ -62,4 +62,9 @@
|
|||
|
||||
# Our supported systems are the same supported systems as the Zig binaries.
|
||||
}) (builtins.attrNames zig.packages));
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = ["https://ghostty.cachix.org"];
|
||||
extra-trusted-public-keys = ["ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns="];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue