2023-05-23 18:09:54 +02:00
|
|
|
# WARN: this file will get overwritten by $ cachix use <name>
|
2023-11-23 17:52:21 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2023-05-23 18:09:54 +02: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));
|
|
|
|
in {
|
|
|
|
inherit imports;
|
2023-05-23 18:11:30 +02:00
|
|
|
nix.settings.substituters = ["https://cache.nixos.org/"];
|
2023-05-23 18:09:54 +02:00
|
|
|
}
|