From d650a1310c7e965ced39b20a05be584f1d95f527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Tue, 3 Jun 2025 17:59:17 +0200 Subject: [PATCH] Use extra- for substituters and trusted-public-keys From the nix manual: > A configuration setting usually overrides any previous value. However, > for settings that take a list of items, you can prefix the name of the > setting by extra- to append to the previous value. Reviewed-by: Rodrigo Arias Mallo --- content/hut/_index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/hut/_index.md b/content/hut/_index.md index 9f32dc8..9ef8427 100644 --- a/content/hut/_index.md +++ b/content/hut/_index.md @@ -38,8 +38,8 @@ enable it for all builds in the system. ```nix { ... }: { nix.settings = { - substituters = [ "https://jungle.bsc.es/cache" ]; - trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; + extra-substituters = [ "https://jungle.bsc.es/cache" ]; + extra-trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; }; } ``` @@ -60,8 +60,8 @@ Note: you'll have to be a trusted user. If using nix outside of NixOS, you'll have to update `/etc/nix/nix.conf` ``` -# echo "substituters = https://jungle.bsc.es/cache" >> /etc/nix/nix.conf -# echo "trusted-public-keys = jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" >> /etc/nix/nix.conf +# echo "extra-substituters = https://jungle.bsc.es/cache" >> /etc/nix/nix.conf +# echo "extra-trusted-public-keys = jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" >> /etc/nix/nix.conf ``` ### Hint in flakes