patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] Documentation: don't repeat configuring the upstream cache
@ 2026-04-21 14:05 Valentin Gagarin
  2026-05-03 17:28 ` Alyssa Ross
  2026-05-03 17:30 ` Alyssa Ross
  0 siblings, 2 replies; 3+ messages in thread
From: Valentin Gagarin @ 2026-04-21 14:05 UTC (permalink / raw)
  To: devel; +Cc: Valentin Gagarin

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-03 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21 14:05 [PATCH] Documentation: don't repeat configuring the upstream cache Valentin Gagarin
2026-05-03 17:28 ` Alyssa Ross
2026-05-03 17:30 ` Alyssa Ross

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).