os/profiles/cachix/default.nix

14 lines
371 B
Nix
Raw Normal View History

2022-11-20 22:28:23 +00:00
{
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));
2022-11-20 22:28:23 +00:00
in {
inherit imports;
2022-11-20 22:28:23 +00:00
nix.binaryCaches = ["https://cache.nixos.org/"];
}