patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Valentin Gagarin <valentin@gagarin.work>
To: devel@spectrum-os.org
Cc: Valentin Gagarin <valentin@gagarin.work>
Subject: [PATCH] Documentation: don't repeat configuring the upstream cache
Date: Tue, 21 Apr 2026 16:05:04 +0200	[thread overview]
Message-ID: <20260421140504.479906-1-valentin@gagarin.work> (raw)

On NixOS, repeating the default will make it show up in the
configuration twice.  We're now relying on option merging to do the right
thing.

On vanilla Linux, repeating was only necessary because not adding
`extra-` would override whatever was set otherwise.  This is generally
undesirable, which is why now we're using `extra-` and thus don't need
to repeat the defaults.

Signed-off-by: Valentin Gagarin <valentin@gagarin.work>
---
 Documentation/installation/binary-cache.adoc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/installation/binary-cache.adoc b/Documentation/installation/binary-cache.adoc
index a51e152..ec8d797 100644
--- a/Documentation/installation/binary-cache.adoc
+++ b/Documentation/installation/binary-cache.adoc
@@ -29,9 +29,10 @@ Add the following configuration to /etc/nixos/configuration.nix:
 { ... }:
 
 {
-  nix.settings.substituters = [ "https://cache.dataaturservice.se/spectrum/" ];
+  nix.settings.substituters = [
+    "https://cache.dataaturservice.se/spectrum/"
+  ];
   nix.settings.trusted-public-keys = [
-    "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
     "spectrum-os.org-2:foQk3r7t2VpRx92CaXb5ROyy/NBdRJQG2uX2XJMYZfU="
   ];
 }
@@ -49,8 +50,8 @@ Add the following configuration to /etc/nix/nix.conf:
 
 [source]
 ----
-substituters = https://cache.dataaturservice.se/spectrum/ https://cache.nixos.org/
-trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= spectrum-os.org-2:foQk3r7t2VpRx92CaXb5ROyy/NBdRJQG2uX2XJMYZfU=
+extra-substituters = https://cache.dataaturservice.se/spectrum/
+extra-trusted-public-keys = spectrum-os.org-2:foQk3r7t2VpRx92CaXb5ROyy/NBdRJQG2uX2XJMYZfU=
 ----
 
 Run `systemctl restart nix-daemon.service` after making any changes in the Nix
-- 
2.51.2


             reply	other threads:[~2026-04-21 14:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-21 14:05 Valentin Gagarin [this message]
2026-05-03 17:28 ` [PATCH] Documentation: don't repeat configuring the upstream cache Alyssa Ross
2026-05-03 17:30 ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260421140504.479906-1-valentin@gagarin.work \
    --to=valentin@gagarin.work \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).