2021-05-18 13:56:39 +00:00
|
|
|
# WARN: this file will get overwritten by $ cachix use <name>
|
2022-03-08 01:42:46 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2021-05-18 13:56:39 +00:00
|
|
|
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));
|
2022-03-08 01:42:46 +00:00
|
|
|
in {
|
2021-05-18 13:56:39 +00:00
|
|
|
inherit imports;
|
2022-11-30 21:52:14 +00:00
|
|
|
nix.settings.substituters = ["https://cache.nixos.org/"];
|
2021-05-18 13:56:39 +00:00
|
|
|
}
|