1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-27 09:29:27 +03:00
digga/profiles/cachix/default.nix
2021-04-18 20:43:37 -06:00

12 lines
367 B
Nix

{ 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/" ];
}