2022-02-18 20:31:01 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2022-03-09 23:55:02 +03:00
|
|
|
}: let
|
2021-04-19 05:43:37 +03:00
|
|
|
folder = ./.;
|
2020-07-11 03:28:14 +03:00
|
|
|
toImport = name: value: folder + ("/" + name);
|
2021-04-19 05:43:37 +03:00
|
|
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
|
2020-07-11 03:28:14 +03:00
|
|
|
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
2022-02-18 20:31:01 +03:00
|
|
|
in {
|
2022-04-10 08:18:19 +03:00
|
|
|
inherit imports;
|
2022-04-09 21:33:13 +03:00
|
|
|
nix.binaryCaches = ["https://cache.nixos.org/"];
|
2020-07-11 03:28:14 +03:00
|
|
|
}
|