From 4456d570cc3484658c1c12a5774fee504da9ba7a Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Fri, 10 Jul 2020 18:28:14 -0600 Subject: [PATCH] cachix: add personal cachix information No profile imports it by default, but if the user wishes to benefit from having some of the packages expressed in this flake pulled down from the cache instead of built locally, they can easily import ./cachix.nix from any profile or host. --- cachix.nix | 14 ++++++++++++++ cachix/nrdxp.nix | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 cachix.nix create mode 100644 cachix/nrdxp.nix diff --git a/cachix.nix b/cachix.nix new file mode 100644 index 0000000..cce90a3 --- /dev/null +++ b/cachix.nix @@ -0,0 +1,14 @@ + +# WARN: this file will get overwritten by $ cachix use +{ pkgs, lib, ... }: + +let + folder = ./cachix; + toImport = name: value: folder + ("/" + name); + filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key; + imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder)); +in { + inherit imports; + nix.binaryCaches = ["https://cache.nixos.org/"]; +} + \ No newline at end of file diff --git a/cachix/nrdxp.nix b/cachix/nrdxp.nix new file mode 100644 index 0000000..c6a09b6 --- /dev/null +++ b/cachix/nrdxp.nix @@ -0,0 +1,12 @@ + +{ + nix = { + binaryCaches = [ + "https://nrdxp.cachix.org" + ]; + binaryCachePublicKeys = [ + "nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4=" + ]; + }; +} + \ No newline at end of file