summaryrefslogtreecommitdiff
path: root/host/software
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-05-20 22:31:15 +0200
committerAdrian Kummerlaender2021-05-20 22:31:15 +0200
commit6b7e90beffe91e387bf199cd9d3bdbbce384c448 (patch)
tree6d177ef384751ff9a2cc77216575988e8d745aef /host/software
parentda35057c36b2d98b6aef1bb8b14d2b1bd2110a29 (diff)
downloadnixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.tar
nixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.tar.gz
nixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.tar.bz2
nixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.tar.lz
nixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.tar.xz
nixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.tar.zst
nixos_system-6b7e90beffe91e387bf199cd9d3bdbbce384c448.zip
Add basic distributed build config
Diffstat (limited to 'host/software')
-rw-r--r--host/software/server/build.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/host/software/server/build.nix b/host/software/server/build.nix
new file mode 100644
index 0000000..44c4562
--- /dev/null
+++ b/host/software/server/build.nix
@@ -0,0 +1,16 @@
+{
+ nix.buildMachines = [ {
+ hostName = "majestix";
+ sshUser = "common";
+ system = "x86_64-linux";
+ maxJobs = 16;
+ speedFactor = 2;
+ } ];
+
+ nix = {
+ distributedBuilds = true;
+ extraOptions = ''
+ builders-use-substitutes = true
+ '';
+ };
+}