summaryrefslogtreecommitdiff
path: root/hosts/muhammed/remote-builders/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/muhammed/remote-builders/default.nix')
-rw-r--r--hosts/muhammed/remote-builders/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/muhammed/remote-builders/default.nix b/hosts/muhammed/remote-builders/default.nix
new file mode 100644
index 0000000..50bda96
--- /dev/null
+++ b/hosts/muhammed/remote-builders/default.nix
@@ -0,0 +1,18 @@
+# Manages remote Nix builders. These are useful for building faster and for
+# other architectures.
+{...}: {
+ imports = [
+ ./local-linux-builder.nix
+ ./ahmed-builder.nix
+ ];
+
+ # Enable using remote builders.
+ nix.distributedBuilds = true;
+
+ # Optional, useful when the builder has a faster internet connection than
+ # yours. This may be the case since this host is a laptop and one of the
+ # remote builders isn't.
+ nix.extraOptions = ''
+ builders-use-substitutes = true
+ '';
+}