dotfiles/modules/cachix.nix

14 lines
411 B
Nix
Raw Normal View History

2021-10-23 11:42:14 +02: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-11-11 18:34:54 +01:00
in
{
2021-10-23 11:42:14 +02:00
inherit imports;
2021-11-11 18:34:54 +01:00
nix.binaryCaches = [ "https://cache.nixos.org/" ];
2021-10-23 11:42:14 +02:00
}