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.
This commit is contained in:
Timothy DeHerrera 2020-07-10 18:28:14 -06:00
parent 4f91c0c661
commit 4456d570cc
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 26 additions and 0 deletions

14
cachix.nix Normal file
View File

@ -0,0 +1,14 @@
# WARN: this file will get overwritten by $ cachix use <name>
{ 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/"];
}

12
cachix/nrdxp.nix Normal file
View File

@ -0,0 +1,12 @@
{
nix = {
binaryCaches = [
"https://nrdxp.cachix.org"
];
binaryCachePublicKeys = [
"nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4="
];
};
}