summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/remote-build/master.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-09-29 21:30:28 +0200
committermakefu <github@syntax-fehler.de>2017-09-29 21:30:28 +0200
commit1e635e4d49ba73e83ce09e25f1f11343f1eb8fc9 (patch)
treed56cb6ee9fcb76b09331af081dfa6081ec3a60a5 /makefu/2configs/remote-build/master.nix
parentd52d28d5d9e96d167490b45e7c96c668d86451c7 (diff)
ma remote-build: init config
Diffstat (limited to 'makefu/2configs/remote-build/master.nix')
-rw-r--r--makefu/2configs/remote-build/master.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/makefu/2configs/remote-build/master.nix b/makefu/2configs/remote-build/master.nix
new file mode 100644
index 000000000..4ad2c5ed8
--- /dev/null
+++ b/makefu/2configs/remote-build/master.nix
@@ -0,0 +1,14 @@
+{ pkgs, ...}:
+let
+ sshKey = (toString <secrets>) + "/id_nixBuild";
+in {
+ nix.distributedBuilds = true;
+ # TODO: iterate over krebs.hosts
+ nix.buildMachines = map ( hostName:
+ { inherit hostName sshKey;
+ sshUser = "nixBuild";
+ system = "x86_64-linux";
+ maxJobs = 1;
+ }) [ "omo.r" "gum.r" "latte.r" ];
+ # puyak.r "wbob.r"
+}