major refactor

This commit is contained in:
Henri Dohmen 2025-12-23 23:05:32 +01:00
parent 20472f8d1b
commit d778875a1b
Signed by: hd
GPG key ID: AB79213B044674AE
32 changed files with 495 additions and 428 deletions

30
mod/build-machines.nix Normal file
View file

@ -0,0 +1,30 @@
{ lib, config, ... }:
with lib;
{
options.hd.buildMachines.enable = mkEnableOption "Use standard remote builders";
config = mkIf config.hd.buildMachines.enable {
nix = {
buildMachines = [
{
hostName = "noravm"; # TODO: do not rely on mutable ssh config
sshUser = "nixremote";
system = "x86_64-linux";
protocol = "ssh-ng";
maxJobs = 32;
speedFactor = 2;
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
mandatoryFeatures = [ ];
}
];
distributedBuilds = true;
extraOptions = ''
builders-use-substitutes = true
'';
};
};
}