From 13973b36413334d9c01e82bc29352e7f3698ce7c Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 9 Sep 2022 20:54:17 -0400 Subject: [PATCH] Setup personal binary cache --- modules/linux/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/modules/linux/default.nix b/modules/linux/default.nix index 8276906..5b5bc57 100644 --- a/modules/linux/default.nix +++ b/modules/linux/default.nix @@ -190,11 +190,18 @@ in ]; # Set system state version system.stateVersion = "22.05"; - # Enable flakes - # Enable nix flakes - nix.package = pkgs.nixFlakes; - nix.extraOptions = '' - experimental-features = nix-command flakes - ''; + + nix = { + # Enable flakes + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; + # Setup my binary cache + settings = { + substituters = [ "https://thatonelutenist-nix-cache.s3.us-west-002.backblazeb2.com/" ]; + trusted-public-keys = [ "nathan-nix-cache:R5/0GiItBM64sNgoFC/aSWuAopOAsObLcb/mwDf335A=" ]; + }; + }; }; }