aboutsummaryrefslogblamecommitdiff
path: root/profiles/remote-builder.nix
blob: 5797c6bf3798684001eda696855559f24cba77c2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                


                       
                           

                          


                                                          
 
                 
                    


                      

                      











                               
                            
                                                                

     
{ config, ... }:
{
  nix.buildMachines = [
    {
      hostName = "builder";
      sshUser = "builder";

      protocol = "ssh";

      sshKey = config.age.secrets.ssh-remote-builder.path;

      systems = [
        "i686-linux"
        "x86_64-linux"
      ];

      maxJobs = 8;
      speedFactor = 2;

      supportedFeatures = [
        "nixos-test"
      ];
    }
  ];

  nix.distributedBuilds = true;

  programs.ssh.extraConfig = ''
    Host builder
      User builder
      HostName 192.168.1.114
      IdentityFile ${config.age.secrets.ssh-remote-builder.path}
  '';
}