summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/hardware/laptop.nix1
-rw-r--r--modules/remote-build.nix13
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/hardware/laptop.nix b/modules/hardware/laptop.nix
index 55dcbd1..a09b12d 100644
--- a/modules/hardware/laptop.nix
+++ b/modules/hardware/laptop.nix
@@ -73,5 +73,6 @@
 
   imports = [
     ../user-interface.nix
+    ../remote-build.nix
   ];
 }
diff --git a/modules/remote-build.nix b/modules/remote-build.nix
new file mode 100644
index 0000000..7c1906f
--- /dev/null
+++ b/modules/remote-build.nix
@@ -0,0 +1,13 @@
+{ config, pkgs, ... }:
+
+{ nix.distributedBuilds = true;
+  nix.buildMachines = [{
+    hostName = "oak.alanpearce.eu";
+    sshUser = "nix-ssh";
+    sshKey = "/root/.ssh/id_ed25519";
+    system = "x86_64-linux";
+    maxJobs = 2;
+    supportedFeatures = ["kvm"];
+    mandatoryFeatures = [];
+  }];
+}