summary refs log tree commit diff stats
path: root/system/cachix.nix
blob: cce90a32f4e0854a388ec5e6f94e67a65381012b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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.binaryCaches = ["https://cache.nixos.org/"];
}