1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-25 17:14:38 +03:00
digga/examples/devos/profiles/cachix/default.nix

12 lines
367 B
Nix
Raw Normal View History

{ 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));
2020-07-31 07:17:28 +03:00
in
{
inherit imports;
2020-07-31 07:17:28 +03:00
nix.binaryCaches = [ "https://cache.nixos.org/" ];
}