2022-11-22 11:30:54 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2021-04-19 02:43:37 +00:00
|
|
|
folder = ./.;
|
2020-07-11 00:28:14 +00:00
|
|
|
toImport = name: value: folder + ("/" + name);
|
2021-04-19 02:43:37 +00:00
|
|
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
|
2020-07-11 00:28:14 +00:00
|
|
|
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
2022-11-22 11:30:54 +00:00
|
|
|
in {
|
2020-07-11 00:28:14 +00:00
|
|
|
inherit imports;
|
2022-11-22 11:30:54 +00:00
|
|
|
nix.settings.substituters = ["https://cache.nixos.org/"];
|
2020-07-11 00:28:14 +00:00
|
|
|
}
|