os/profiles/cachix/default.nix

15 lines
378 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 04:17:28 +00:00
in
{
inherit imports;
nix.settings.substituters = [ "https://cache.nixos.org/" ];
}