Commit e6c09ce59f8c

Vincent Demeester <vincent@sbr.pm>
2018-12-27 13:50:40
kobe: Trying distributed builds
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 14a3643
Changed files (2)
machine/hokkaido.nix
@@ -11,6 +11,7 @@ with import ../assets/machines.nix; {
   profiles = {
     avahi.enable = true;
     dev.enable = true;
+    docker.enable = true;
     ssh.enable = true;
     syncthing.enable = true;
     virtualization.enable = true;
machine/kobe.nix
@@ -7,6 +7,23 @@ with import ../assets/machines.nix; {
     fsType = "nfs";
     options = ["x-systemd.automount" "noauto"];
   };
+  nix = {
+    distributedBuilds = true;
+    buildMachines = [{
+      hostName = "hokkaido.home";
+      sshUser = "vincent";
+      sshKey = "/home/vincent/.ssh/id_ed25519";
+      system = "x86_64-linux";
+      maxJobs = 2;
+      sypportedFeatures = ["kvm" "docker"];
+    } {
+      hostName = "honshu.home";
+      sshUser = "vincent";
+      sshKey = "/home/vincent/.ssh/id_ed25519";
+      system = "x86_64-linux";
+      maxJobs = 2;
+    }];
+  };
   boot = {
     cleanTmpDir = true;
   };