2023-11-12 21:16:35 +01:00
|
|
|
# WARN: this file will get overwritten by $ cachix use <name>
|
2023-11-27 22:11:52 +01:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
2023-11-12 21:16:35 +01:00
|
|
|
let
|
|
|
|
folder = ./caches;
|
|
|
|
toImport = name: value: folder + ("/" + name);
|
|
|
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
|
|
|
|
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit imports;
|
|
|
|
nix.settings.substituters = [ "https://cache.nixos.org/" ];
|
|
|
|
nix.settings.trusted-users = [ "root" "tristand" ];
|
|
|
|
}
|