nixos-config/nixos/system/desktop/cachix.nix

15 lines
424 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +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;
2019-12-20 05:54:26 +01:00
imports = lib.mapAttrsToList toImport
(lib.filterAttrs filterCaches (builtins.readDir folder));
2021-11-01 09:20:42 +01:00
in
{
2019-10-24 02:20:38 +02:00
inherit imports;
2023-01-07 16:41:03 +01:00
nix.settings.substituters = [ "https://cache.nixos.org/" ];
2019-10-24 02:20:38 +02:00
}