ark/modules/cachix/default.nix

14 lines
380 B
Nix
Raw Normal View History

2022-02-18 20:31:01 +03:00
{
pkgs,
lib,
...
2022-03-09 23:55:02 +03:00
}: let
folder = ./.;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
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-07-12 01:22:30 +03:00
nix.settings.substituters = ["https://cache.nixos.org/"];
}