2020-07-11 02:28:14 +02:00
|
|
|
# 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));
|
2020-07-31 06:17:28 +02:00
|
|
|
in
|
|
|
|
{
|
2020-07-11 02:28:14 +02:00
|
|
|
inherit imports;
|
2020-07-31 06:17:28 +02:00
|
|
|
nix.binaryCaches = [ "https://cache.nixos.org/" ];
|
2020-07-11 02:28:14 +02:00
|
|
|
}
|