feat: setup distributed builds

This commit is contained in:
Noa Aarts 2024-10-21 11:20:51 +02:00
parent 7d042665f3
commit f54bb71e7d
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -88,6 +88,20 @@
}; };
}; };
nix = {
buildMachines = [{
hostName = "lambdaOS";
system = "x86_64-linux";
protocol = "ssh-ng";
maxJobs = 4;
speedFactor = 3;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}];
distributedBuilds = true;
settings.builders-use-substitutes = true;
};
systemd.services."update-from-flake" = { systemd.services."update-from-flake" = {
path = with pkgs; [ path = with pkgs; [
nixos-rebuild nixos-rebuild