devos/cachix: move cache definitions into modules
This commit is contained in:
parent
676efc9378
commit
6bb529af81
3 changed files with 0 additions and 0 deletions
|
@ -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/" ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue