From 0e581ca1f116fd59a7544b1abbb09073ef52565e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 11 Jan 2023 06:38:07 -0600 Subject: [PATCH] moving cachix to make pure flake --- cachix/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cachix/default.nix diff --git a/cachix/default.nix b/cachix/default.nix new file mode 100644 index 0000000..ecd2d39 --- /dev/null +++ b/cachix/default.nix @@ -0,0 +1,13 @@ + +# WARN: this file will get overwritten by $ cachix use +{ 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)); +in { + inherit imports; + nix.settings.substituters = ["https://cache.nixos.org/"]; +}