nixos-config/system/desktop/cachix.nix

14 lines
415 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +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;
2019-12-20 05:54:26 +01:00
imports = lib.mapAttrsToList toImport
(lib.filterAttrs filterCaches (builtins.readDir folder));
2019-10-24 02:20:38 +02:00
in {
inherit imports;
2019-12-20 05:54:26 +01:00
nix.binaryCaches = [ "https://cache.nixos.org/" ];
2019-10-24 02:20:38 +02:00
}