17 lines
884 B
Nix
17 lines
884 B
Nix
# WARN: this file will get overwritten by $ cachix use <name>
|
|
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
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" " https://cache.nixos.org/" "https://cosmic.cachix.org/" "https://nix-community.cachix.org" " https://helix.cachix.org" "https://cosmic.cachix.org"];
|
|
trusted-public-keys = ["cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="];
|
|
};
|
|
}
|