dotfiles/modules/cachix.nix

14 lines
424 B
Nix
Raw Normal View History

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