1
0
Fork 0
nixos-config/cachix.nix

14 lines
415 B
Nix
Raw Normal View History

2019-05-19 19:23:53 +00:00
# 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;
2019-07-31 20:59:54 +00:00
imports = lib.mapAttrsToList toImport
(lib.filterAttrs filterCaches (builtins.readDir folder));
2019-05-19 19:23:53 +00:00
in {
inherit imports;
2019-07-31 20:59:54 +00:00
nix.binaryCaches = [ "https://cache.nixos.org/" ];
2019-05-19 19:23:53 +00:00
}