From 5615764d3d2bf583bdb1da3f2914c2c5215f034c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 28 Nov 2020 13:32:31 -0500 Subject: Tweak nix config for remote builds --- Biz/Dev/Configuration.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Biz/Dev/Configuration.nix') diff --git a/Biz/Dev/Configuration.nix b/Biz/Dev/Configuration.nix index b316b16..7fa0e37 100644 --- a/Biz/Dev/Configuration.nix +++ b/Biz/Dev/Configuration.nix @@ -223,15 +223,22 @@ in { nix = { - # 1 job * 2 cores = 2 maximum cores used at any one time - maxJobs = 1; - buildCores = 1; + autoOptimiseStore = true; + buildCores = 0; # use all available cores # Since this is the dev machine, we can turn these on at the expense # of extra disk space. extraOptions = '' keep-outputs = true keep-derivations = true ''; + # 1 job * 2 cores = 2 maximum cores used at any one time + maxJobs = 1; + sshServe = { + enable = true; + keys = [ + (builtins.readFile ../Keys/Ben.pub) + ]; + }; trustedUsers = [ "root" "ben" ]; }; -- cgit v1.2.3