added distributed build

This commit is contained in:
yaroslav
2025-09-23 23:01:16 +03:00
parent 488c85f148
commit 9b2bfc95ea
5 changed files with 46 additions and 1 deletions
+2
View File
@@ -68,6 +68,8 @@
};
};
chaotic.mesa-git.enable = true;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
+24
View File
@@ -0,0 +1,24 @@
{ config, pkgs, ...}:
{
nix.buildMachines = [ {
hostName = "Aphelion";
system = "x86_64-linux";
protocol = "ssh-ng";
# if the builder supports building for multiple architectures,
# replace the previous line by, e.g.
# systems = ["x86_64-linux" "aarch64-linux"];
maxJobs = 16;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}] ;
nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = ''
builders-use-substitutes = true
'';
nix.settings.trusted-public-keys = [
"Aphelion:8l9lrL3kszDTXkpA/R4ZFhSifiBoogiOIt1srgLb6Vw="
];
}