about summary refs log tree commit diff
path: root/users/tazjin/nixos/tverskoy
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-04-04T18·39+0200
committertazjin <mail@tazj.in>2021-04-04T18·54+0000
commitcbd6f5bbae95c26b1e67993ac609e83fa4b117fb (patch)
treedaaf83a27c40c3ea75eb9974348f747062baaf91 /users/tazjin/nixos/tverskoy
parent0f1d3de26f252daff8c88d62e29d08c1548e4d3e (diff)
feat(tverskoy): Configure whitby binary cache r/2437
Change-Id: I51d4b42998d6005da15e4d0bed82062cd4e36fe9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2848
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'users/tazjin/nixos/tverskoy')
-rw-r--r--users/tazjin/nixos/tverskoy/default.nix20
1 files changed, 15 insertions, 5 deletions
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" ];