From c947af9db81bae4ee9fcd5eb6b9a88bb7a4a662c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 30 Nov 2022 17:46:38 -0800 Subject: feat(modules/nix): add binary caches --- modules/system/nix/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/system/nix/default.nix b/modules/system/nix/default.nix index 2ad20c3..ad6bb8d 100644 --- a/modules/system/nix/default.nix +++ b/modules/system/nix/default.nix @@ -8,6 +8,16 @@ autoOptimiseStore = true; trustedUsers = [ "root" "@wheel" ]; + binaryCaches = [ + "https://cachix.cachix.org" + "https://nix-community.cachix.org" + ]; + + binaryCachePublicKeys = [ + "cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + gc = { automatic = true; options = "--delete-older-than 14d"; -- cgit 1.4.1