From 3bc6885a142f64e7a5aced1af4a6cb67f63c7bd0 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 24 Nov 2026 15:51:12 +0000 Subject: [PATCH] nix: Add nix-community binary cache The nix-community cache builds unfree packages that `cache.nixos.org` skips, such as the MongoDB used by UniFi, which otherwise takes hours to build in CI. Add it to the flake's `nixConfig` (used by CI) and to `lib.my.c.nix.cache` for boxes, homes and the devshell. Co-Authored-By: Claude Opus 5.5 --- docs/deployment.md | 3 +++ flake.nix | 2 ++ lib/constants.nix | 2 ++ 3 files changed, 7 insertions(+) diff --git a/docs/deployment.md b/docs/deployment.md index ffee42e..79c2344 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -92,6 +92,9 @@ The shared cache settings in `lib.my.c.nix.cache` and the flake's `nixConfig` in the [Numtide binary cache](https://github.com/numtide/llm-agents.nix#binary-cache), so both agents can be downloaded prebuilt. Keep the input's tested nixpkgs pin to preserve cache hits. +They also include the [nix-community cache](https://nix-community.org/cache/), which builds +unfree packages that `cache.nixos.org` doesn't, such as the MongoDB used by UniFi. + `programs.codex.mutableSettings` merges the declared status-line settings into the writable `~/.codex/config.toml` during activation. Declared values take precedence on each switch; other settings, including model selection, providers and project trust, remain imperative. diff --git a/flake.nix b/flake.nix index 90f46f3..848638d 100644 --- a/flake.nix +++ b/flake.nix @@ -9,10 +9,12 @@ extra-substituters = [ "https://nix-cache.nul.ie" "https://cache.numtide.com" + "https://nix-community.cachix.org" ]; extra-trusted-public-keys = [ "nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4=" "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; }; diff --git a/lib/constants.nix b/lib/constants.nix index 2d9f41a..a02dff7 100644 --- a/lib/constants.nix +++ b/lib/constants.nix @@ -105,10 +105,12 @@ rec { substituters = [ "https://nix-cache.${pubDomain}" "https://cache.numtide.com" + "https://nix-community.cachix.org" ]; keys = [ "nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4=" "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; conf = '' extra-substituters = ${concatStringsSep " " substituters}