infra/nix/os/cachix.nix

13 lines
419 B
Nix
Raw Normal View History

# WARN: this file will get overwritten by $ cachix use <name>
2024-11-15 10:17:56 +01:00
{ pkgs, lib, ... }:
let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
2024-11-15 10:17:56 +01:00
in
{
inherit imports;
2024-11-15 10:17:56 +01:00
nix.settings.substituters = [ "https://cache.nixos.org/" ];
}