infra/nix/london/cachix.nix

15 lines
423 B
Nix
Raw Normal View History

2023-07-25 20:13:34 +01:00
# WARN: this file will get overwritten by $ cachix use <name>
2024-02-05 13:13:44 +00:00
{
pkgs,
lib,
...
}: let
2023-07-25 20:13:34 +01: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;
nix.settings.substituters = ["https://cache.nixos.org/"];
}