about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-26 22:38:01 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-26 22:38:01 +0200
commit75f28ac0734a7aedcae95e4f1d6fc749808e1b21 (patch)
tree342e2f4c6fdb2702ac14e6898daca0ed3f3eaa8e
parentSeparate sxhkd config and add host-specific config (diff)
downloadnixos-config-75f28ac0734a7aedcae95e4f1d6fc749808e1b21.tar.gz
nixos-config-75f28ac0734a7aedcae95e4f1d6fc749808e1b21.tar.bz2
nixos-config-75f28ac0734a7aedcae95e4f1d6fc749808e1b21.zip
Luna: Enable distributed builds
-rw-r--r--hosts/luna/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix
index 23f4a07..d974306 100644
--- a/hosts/luna/default.nix
+++ b/hosts/luna/default.nix
@@ -34,5 +34,22 @@
   environment.systemPackages = with pkgs; [
     xf86_input_cmt #chromebook touchpad drivers
   ];
+
+  nix = {
+    distributedBuilds = true;
+    # optional, useful when the builder has a faster internet connection than yours
+    extraOptions = "builders-use-substitutes = true";
+    buildMachines = [{
+      hostName = "builder";
+      system = "x86_64-linux";
+      # if the builder supports building for multiple architectures,
+      # replace the previous line by, e.g.,
+      # systems = ["x86_64-linux" "aarch64-linux"];
+      maxJobs = 4;
+      speedFactor = 2;
+      supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
+      mandatoryFeatures = [ ];
+    }];
+  };
 }