diff --git a/cachix.nix b/cachix.nix new file mode 100644 index 0000000..ecd2d39 --- /dev/null +++ b/cachix.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/"]; +} diff --git a/cachix/natsukagami.nix b/cachix/natsukagami.nix new file mode 100644 index 0000000..55a7d5a --- /dev/null +++ b/cachix/natsukagami.nix @@ -0,0 +1,13 @@ + +{ + nix = { + settings = { + substituters = [ + "https://natsukagami.cachix.org" + ]; + trusted-public-keys = [ + "natsukagami.cachix.org-1:3U6GV8i8gWEaXRUuXd2S4ASfYgdl2QFPWg4BKPbmYiQ=" + ]; + }; + }; +}