From 89fc9fb163e4c807378431048fb43f2f928adb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Wed, 26 Feb 2025 16:03:26 +0100 Subject: [PATCH] Add module to use hut as a binary substituter --- m/module/hut-substituter.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 m/module/hut-substituter.nix diff --git a/m/module/hut-substituter.nix b/m/module/hut-substituter.nix new file mode 100644 index 0000000..5a864bd --- /dev/null +++ b/m/module/hut-substituter.nix @@ -0,0 +1,10 @@ +{ config, ... }: +{ + nix.settings = + # Don't add hut as a cache to itself + assert config.networking.hostName != "hut"; + { + substituters = [ "https://jungle.bsc.es/cache" ]; + trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; + }; +}