From cbd6f5bbae95c26b1e67993ac609e83fa4b117fb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 4 Apr 2021 20:39:01 +0200 Subject: feat(tverskoy): Configure whitby binary cache Change-Id: I51d4b42998d6005da15e4d0bed82062cd4e36fe9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2848 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/tverskoy/default.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'users') diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index 54f1afa51017..2f7ffd66c7e8 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -31,11 +31,21 @@ in lib.fix(self: { "${nixpkgs.home-manager.src}/nixos" ]; - nix.nixPath = lib.mkForce [ - "nixpkgs=${depot.third_party.nixpkgsSrc}" - "nixos=${depot.third_party.nixpkgsSrc}" - "depot=/depot" - ]; + nix = { + nixPath = lib.mkForce [ + "nixpkgs=${depot.third_party.nixpkgsSrc}" + "nixos=${depot.third_party.nixpkgsSrc}" + "depot=/depot" + ]; + + binaryCachePublicKeys = [ + "cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk=" + ]; + + binaryCaches = [ + "https://cache.tvl.su" + ]; + }; boot = { initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; -- cgit 1.4.1