From 9d33379f948a130a41cf71cbf6ed639327277808 Mon Sep 17 00:00:00 2001 From: Amadey Vorontsov Date: Mon, 18 May 2026 20:27:50 +0000 Subject: [PATCH] [M8] wrapper: substituters + trusted-public-keys for cargoxx-pkgs cache --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 964683d..5f0dd02 100644 --- a/flake.nix +++ b/flake.nix @@ -27,10 +27,15 @@ # Defaults applied to the bundled `nix` so it works on hosts # that don't already have nix set up (Arch/Debian/Fedora users # who install our .pkg.tar.zst / .deb / .rpm). Multi-user mode - # would expect a `nixbld` group and a running daemon + # would expect a `nixbld` group and a running daemon. + # `substituters` includes the cargoxx-pkgs binary cache so + # `cargoxx add ` substitutes prebuilt $out instead of + # rebuilding each registry package locally. cargoxxNixConfig = '' experimental-features = nix-command flakes build-users-group = + substituters = https://cache.cargoxx.amadey.xyz https://cache.nixos.org + trusted-public-keys = cache.cargoxx.amadey.xyz:HQNcKDh9lufWm0M32a06AEiLf1Hr0WoRY3Bp5NnWZxs= cache.nixos.org:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ''; cargoxx-bin = pkgs.gcc15Stdenv.mkDerivation {