summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-10-02 19:59:50 +0200
committerAlan Pearce2017-10-02 19:59:50 +0200
commit2edba7e1a76d3970bddd9baf6319c0b68b9c9f36 (patch)
tree52a857a662974ab338c4ec559cbd63a82dca84f3
parentacfa8110cdf4dde9532d33442a4ad18f5a6196c6 (diff)
downloadnixos-configuration-2edba7e1a76d3970bddd9baf6319c0b68b9c9f36.tar.lz
nixos-configuration-2edba7e1a76d3970bddd9baf6319c0b68b9c9f36.tar.zst
nixos-configuration-2edba7e1a76d3970bddd9baf6319c0b68b9c9f36.zip
Laptop: Use remote build server
-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 = [];
+  }];
+}