From df8b8d5f92ce846ffc31b0a6ec21cd8844bb498c Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 6 Feb 2024 12:13:21 +0100 Subject: [PATCH] add distibuted builds --- modules/nix/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index e8a03ba..d0f6a77 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -45,7 +45,15 @@ in { hostName = "zap"; protocol = "ssh-ng"; } + { + systems = [ config.nixpkgs.hostPlatform.system ]; + supportedFeatures = config.nix.settings.system-features; + speedFactor = 15; + hostName = "localhost"; + protocol = "null"; + } ]; + distributedBuilds = true; package = pkgs.nixVersions.unstable; registry = lib.mkForce ((lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // { self.flake = self;