summaryrefslogtreecommitdiff
path: root/modules/binary-caches.nix
blob: 373e653484289c5fb5ef0ca3f0d897c64ce6e239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ pkgs, lib, ... }: {
  nix = {
    extraOptions = ''
      builders-use-substitutes = true
    '';

    registry.microvm = {
      from = {
        type = "indirect";
        id = "microvm";
      };
      to = {
        type = "github";
        owner = "astro";
        repo = "microvm.nix";
      };
    };
    settings = {
      trusted-users = [
        "grue"
        "@wheel"
      ];
      substituters = [
        "https://microvm.cachix.org"
        "https://nix-serve.hq.c3d2.de"
        "https://dump-dvb.cachix.org"
      ];
      trusted-substituters = [
        "https://microvm.cachix.org"
        "https://nix-serve.hq.c3d2.de"
        "https://dump-dvb.cachix.org"
      ];
      trusted-public-keys = [
        "microvm.cachix.org-1:oXnBc6hRE3eX5rSYdRyMYXnfzcCxC7yKPTbZXALsqys="
        "nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps="
        "dump-dvb.cachix.org-1:+Dq7gqpQG4YlLA2X3xJsG1v3BrlUGGpVtUKWk0dTyUU="
      ];
    };
  };
}