about summary refs log tree commit diff
path: root/users/grfn/system/system/modules/tvl.nix
blob: fc189972da7711dd9b0023514e5e21f22035e922 (plain) (blame)
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
{ config, lib, pkgs, ... }:

{
  nix = {
    buildMachines = [{
      hostName = "whitby.tvl.fyi";
      sshUser = "grfn";
      sshKey = "/root/.ssh/id_rsa";
      system = "x86_64-linux";
      maxJobs = 64;
      supportedFeatures = [ "big-parallel" "kvm" "nixos-test" "benchmark" ];
    }];

    extraOptions = ''
      builders-use-substitutes = true
    '';

    settings = {
      substituters = [
        "https://cache.nixos.org"
      ];
      trusted-substituters = [
        "https://cache.nixos.org"
        "ssh://nix-ssh@whitby.tvl.fyi"
      ];
      trusted-public-keys = [
        "cache.tvl.fyi:fd+9d1ceCPvDX/xVhcfv8nAa6njEhAGAEe+oGJDEeoc="
      ];
    };
  };

  programs.ssh.knownHosts.whitby = {
    extraHostNames = [ "whitby" "whitby.tvl.fyi" "49.12.129.211" ];
    publicKeyFile = pkgs.writeText "whitby.pub" ''
      ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILNh/w4BSKov0jdz3gKBc98tpoLta5bb87fQXWBhAl2I
    '';
  };
}