From 2edba7e1a76d3970bddd9baf6319c0b68b9c9f36 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 2 Oct 2017 19:59:50 +0200 Subject: Laptop: Use remote build server --- modules/hardware/laptop.nix | 1 + modules/remote-build.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/remote-build.nix 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 = []; + }]; +} -- cgit 1.4.1