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:
parent
4f91c0c661
commit
4456d570cc
14
cachix.nix
Normal file
14
cachix.nix
Normal 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
12
cachix/nrdxp.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
{
|
||||
nix = {
|
||||
binaryCaches = [
|
||||
"https://nrdxp.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue