devos/cachix: move cache definitions into modules

This commit is contained in:
Infinidoge 2021-12-02 09:49:44 -05:00
parent 676efc9378
commit 6bb529af81
3 changed files with 0 additions and 0 deletions

View file

@ -1,11 +0,0 @@
{ pkgs, lib, ... }:
let
folder = ./.;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
in
{
inherit imports;
nix.binaryCaches = [ "https://cache.nixos.org/" ];
}