From 6fac30abc4a6fe89e4a97009c3ecea51013ff6b6 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 | 9 +++++++++ 1 file changed, 9 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..be73a59 --- /dev/null +++ b/m/module/hut-substituter.nix @@ -0,0 +1,9 @@ +{ config, ... }: + # Don't add hut as a cache to itself + assert config.networking.hostName != "hut"; +{ + nix.settings = { + substituters = [ "https://jungle.bsc.es/cache" ]; + trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; + }; +}