From 83c6db86f7926ed9c76dc180ede74258fc909757 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Sat, 11 Jun 2022 18:05:20 +0200 Subject: [PATCH] [Nix] Add self-hosted nixos cache --- nix.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix.nix b/nix.nix index edd9550..37e6b89 100644 --- a/nix.nix +++ b/nix.nix @@ -34,6 +34,9 @@ in stalled-download-timeout = 20; }; + nix.binaryCaches = mkBefore [ "https://nix-cache.lesviallon.fr" ]; + nix.binaryCachePublicKeys = mkBefore [ "nix-cache.lesviallon.fr-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ]; + nix.buildCores = mkIf (generalCfg.cores != null) generalCfg.cores; nix.maxJobs = mkIf (generalCfg.cores != null) (math.log2 generalCfg.cores);