# A Nix store is three functions

**URL:** https://discourse.nixos.org/t/a-nix-store-is-three-functions/80065
**Category:** Links
**Created:** [September 12, 2026, 3:13pm UTC](https://discourse.nixos.org/t/a-nix-store-is-three-functions/80065 "2026-09-12T15:13:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [September 12, 2026, 3:13pm UTC](https://discourse.nixos.org/t/a-nix-store-is-three-functions/80065/1 "2026-09-12T15:13:53Z")

</div>

> **[A Nix store is three functions](https://fzakaria.com/2026/09/11/a-nix-store-is-three-functions)**
>
> While building trynix I needed somewhere to host a store-path that did not exist on cache.nixos.org.1 I wanted to demonstrate that non-Nixpkgs store paths could be booted just as easily. I was also waiting for @domenkozar to enable CORS on...

---

<div class="post-metadata">

### Author: ![bitbloxhub](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bitbloxhub/32/35210_2.png) [@bitbloxhub](https://discourse.nixos.org/u/bitbloxhub)
#### Post date: [September 12, 2026, 3:28pm UTC](https://discourse.nixos.org/t/a-nix-store-is-three-functions/80065/2 "2026-09-12T15:28:05Z")

</div>

Another interesting OCI registry-based binary cache for Nix:

> **[GitHub - linyinfeng/oranc: OCI Registry As Nix Cache](https://github.com/linyinfeng/oranc)**
>
> OCI Registry As Nix Cache

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [September 12, 2026, 3:39pm UTC](https://discourse.nixos.org/t/a-nix-store-is-three-functions/80065/3 "2026-09-12T15:39:42Z")

</div>

> [@fzakaria](#):
>
> [A Nix store is three functions | Farid Zakaria’s Blog](https://fzakaria.com/2026/09/11/a-nix-store-is-three-functions)

I link to [GitHub - cmspam/nixcache-oci: Self-hosted Nix binary cache via GHCR (OCI registry) · GitHub](https://github.com/cmspam/nixcache-oci) as an example as well; similar purpose.

---

<div class="post-metadata">

### Author: ![bitbloxhub](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bitbloxhub/32/35210_2.png) [@bitbloxhub](https://discourse.nixos.org/u/bitbloxhub)
#### Post date: [September 12, 2026, 3:41pm UTC](https://discourse.nixos.org/t/a-nix-store-is-three-functions/80065/4 "2026-09-12T15:41:43Z")

</div>

Saw that! Actually believe I discovered `oranc` myself from the `nixcache-oci` Discourse thread:

> [@Nixcache-oci: Use GHCR as a Nix binary cache](https://discourse.nixos.org/t/nixcache-oci-use-ghcr-as-a-nix-binary-cache/76826/2):
>
> how does it compare to [GitHub - linyinfeng/oranc: OCI Registry As Nix Cache · GitHub](https://github.com/linyinfeng/oranc)?

> [@Nixcache-oci: Use GHCR as a Nix binary cache](https://discourse.nixos.org/t/nixcache-oci-use-ghcr-as-a-nix-binary-cache/76826/3):
>
> I actually had no idea that project existed… and probably wouldn’t have made this one if I had. However upon comparison, I would say that oranc is probably more flexible to be used locally or to any OCI registry, while nixcache-oci is more opinionated to a github-based workflow – github builders and ghcr, auto-discovery, scheduled updates and garbage collection, all running from github. I think that with nixcache-oci I handle narinfo lookups better, using an in-memory index to decrease the num…
