diff options
| author | Baitinq <[email protected]> | 2022-06-26 22:38:01 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-06-26 22:38:01 +0200 |
| commit | 4b263bed96b1b9e9a63f568b6a88400f34109e7e (patch) | |
| tree | 0a637b2606280c34369339e9094c48204ef31cdc /hosts/luna/default.nix | |
| parent | Separate sxhkd config and add host-specific config (diff) | |
| download | nixos-config-4b263bed96b1b9e9a63f568b6a88400f34109e7e.tar.gz nixos-config-4b263bed96b1b9e9a63f568b6a88400f34109e7e.tar.bz2 nixos-config-4b263bed96b1b9e9a63f568b6a88400f34109e7e.zip | |
Luna: Enable distributed builds
Diffstat (limited to 'hosts/luna/default.nix')
| -rw-r--r-- | hosts/luna/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix index 23f4a07..d974306 100644 --- a/hosts/luna/default.nix +++ b/hosts/luna/default.nix @@ -34,5 +34,22 @@ environment.systemPackages = with pkgs; [ xf86_input_cmt #chromebook touchpad drivers ]; + + nix = { + distributedBuilds = true; + # optional, useful when the builder has a faster internet connection than yours + extraOptions = "builders-use-substitutes = true"; + buildMachines = [{ + hostName = "builder"; + system = "x86_64-linux"; + # if the builder supports building for multiple architectures, + # replace the previous line by, e.g., + # systems = ["x86_64-linux" "aarch64-linux"]; + maxJobs = 4; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }]; + }; } |