helm/hosts/profiles/cachix/default.nix

12 lines
376 B
Nix
Raw Normal View History

2022-09-18 15:13:50 -07: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));
in
{
inherit imports;
2022-12-04 21:07:27 -08:00
nix.settings.substituters = [ "https://cache.nixos.org/" ];
2022-09-18 15:13:50 -07:00
}