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 <noreply@anthropic.com>
This commit is contained in:
1 parent
139afc004e
commit
3bc6885a14
3 files changed
+7
No files matched your search
@@ -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
|
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.
|
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
|
`programs.codex.mutableSettings` merges the declared status-line settings into the writable
|
||||||
`~/.codex/config.toml` during activation. Declared values take precedence on each switch;
|
`~/.codex/config.toml` during activation. Declared values take precedence on each switch;
|
||||||
other settings, including model selection, providers and project trust, remain imperative.
|
other settings, including model selection, providers and project trust, remain imperative.
|
||||||
|
|||||||
@@ -9,10 +9,12 @@
|
|||||||
extra-substituters = [
|
extra-substituters = [
|
||||||
"https://nix-cache.nul.ie"
|
"https://nix-cache.nul.ie"
|
||||||
"https://cache.numtide.com"
|
"https://cache.numtide.com"
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4="
|
"nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4="
|
||||||
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
|
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -105,10 +105,12 @@ rec {
|
|||||||
substituters = [
|
substituters = [
|
||||||
"https://nix-cache.${pubDomain}"
|
"https://nix-cache.${pubDomain}"
|
||||||
"https://cache.numtide.com"
|
"https://cache.numtide.com"
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
keys = [
|
keys = [
|
||||||
"nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4="
|
"nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4="
|
||||||
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
|
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
conf = ''
|
conf = ''
|
||||||
extra-substituters = ${concatStringsSep " " substituters}
|
extra-substituters = ${concatStringsSep " " substituters}
|
||||||
|
|||||||
Reference in new issue
Block a user