From d00f996f595748e3e520b1d72e222d21b84529ed 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 --- m/module/hut-substituter.nix | 4 ++-- m/raccoon/configuration.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/m/module/hut-substituter.nix b/m/module/hut-substituter.nix index 9b871f64..8d27a458 100644 --- a/m/module/hut-substituter.nix +++ b/m/module/hut-substituter.nix @@ -4,7 +4,7 @@ # Don't add hut as a cache to itself assert config.networking.hostName != "hut"; { - substituters = [ "http://hut/cache" ]; - trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; + extra-substituters = [ "http://hut/cache" ]; + extra-trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; }; } diff --git a/m/raccoon/configuration.nix b/m/raccoon/configuration.nix index 2482a164..28d4da8f 100644 --- a/m/raccoon/configuration.nix +++ b/m/raccoon/configuration.nix @@ -29,8 +29,8 @@ }; 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=" ]; }; # Enable performance governor