From 92b20f0a0f9e3c713bd30a99b756171d70154656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Leber?= Date: Fri, 14 Feb 2025 12:55:48 +0100 Subject: [PATCH] Add cache to all machines --- modules/base.nix | 1 + modules/nix-cache.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/nix-cache.nix diff --git a/modules/base.nix b/modules/base.nix index b512830..2fd06db 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -3,6 +3,7 @@ { imports = [ ./nix-auto-clean.nix + ./nix-cache.nix ./prometheus-node.nix ]; } diff --git a/modules/nix-cache.nix b/modules/nix-cache.nix new file mode 100644 index 0000000..d29b614 --- /dev/null +++ b/modules/nix-cache.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: + +{ + nix.settings = { + substituters = [ + "http://builder.l" + ]; + trusted-public-keys = [ + "cache.lpm.feri.um.si:TwiF0KOXmbNihiysjGaH7EZOMHUvuwy+1mI/EHGc56M=" + ]; + }; +}