From 0f5cc25697b3d43f64ed2914e186cecee75efce7 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 15 Dec 2021 17:44:37 -0500 Subject: feat(ops/modules): Add shared module for TVL cache Add a shared nixos module for configuring whitby as a binary nix cache, and refactor tverskoy to use this module. This is enabled via an option to pave the way for including it as an import in all depot-generated nixos configs at some point in the future. Change-Id: I6dcc0e8eb48b1ac34457666dceebeedd5da6c526 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4344 Tested-by: BuildkiteCI Reviewed-by: tazjin Reviewed-by: wpcarro Autosubmit: grfn --- users/tazjin/nixos/tverskoy/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'users') diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index 403e9cd6f2..45bf8c9712 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -19,18 +19,11 @@ in lib.fix(self: { imports = [ "${depot.third_party.impermanence}/nixos.nix" "${depot.path + "/ops/modules/automatic-gc.nix"}" + "${depot.path + "/ops/modules/tvl-cache.nix"}" "${pkgs.home-manager.src}/nixos" ]; - nix = { - binaryCachePublicKeys = [ - "cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk=" - ]; - - binaryCaches = [ - "https://cache.tvl.su" - ]; - }; + tvl.cache.enable = true; boot = rec { initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; -- cgit 1.4.1