nixcfg/systems/nixbuild.nix
Harald Hoyer d2d707ecc3 chore(nixbuild): add supportedFeatures to builder configs
- Introduced `supportedFeatures` to each builder for better control over build capabilities (`nixos-test`, `benchmark`, `big-parallel`, and `kvm` for SGX).
- Enabled `builders-use-substitutes` setting to optimize build efficiency.
2025-11-13 13:20:06 +01:00

57 lines
1.2 KiB
Nix

{ ... }:
{
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "m4";
system = "aarch64-darwin";
maxJobs = 4;
speedFactor = 3;
sshUser = "harald";
sshKey = "/etc/ssh/nix-builder-key";
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
];
}
{
hostName = "rialo";
system = "aarch64-darwin";
maxJobs = 4;
speedFactor = 3;
sshUser = "harald";
sshKey = "/etc/ssh/nix-builder-key";
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
];
}
{
hostName = "sgx";
system = "x86_64-linux";
maxJobs = 4;
speedFactor = 1;
sshUser = "harald";
sshKey = "/etc/ssh/nix-builder-key";
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
}
];
nix.settings.builders-use-substitutes = true;
# Ensure Nix is in PATH for SSH sessions
programs.fish.shellInit = ''
set -gx PATH /nix/var/nix/profiles/default/bin $PATH
set -gx PATH /run/current-system/sw/bin $PATH
'';
nix.settings.download-buffer-size = 524288000;
}