This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/cachix.nix
Payas Relekar ddf6fe498c Update Nix config options to match upstream
1. nix.binaryCaches -> nix.settings.substituters
  2. nix.maxJobs -> nix.settings.max-jobs
2022-02-12 19:31:42 +05:30

13 lines
419 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/"];
}