1
0
Fork 0
nixos-config/cachix.nix

14 lines
411 B
Nix
Raw Normal View History

2021-05-18 13:56:39 +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;
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
2021-05-18 14:33:28 +00:00
in
{
2021-05-18 13:56:39 +00:00
inherit imports;
2021-05-18 14:33:28 +00:00
nix.binaryCaches = [ "https://cache.nixos.org/" ];
2021-05-18 13:56:39 +00:00
}