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.
This commit is contained in:
parent
dc19a8bd1c
commit
d2d707ecc3
1 changed files with 18 additions and 0 deletions
|
|
@ -10,6 +10,11 @@
|
|||
speedFactor = 3;
|
||||
sshUser = "harald";
|
||||
sshKey = "/etc/ssh/nix-builder-key";
|
||||
supportedFeatures = [
|
||||
"nixos-test"
|
||||
"benchmark"
|
||||
"big-parallel"
|
||||
];
|
||||
}
|
||||
{
|
||||
hostName = "rialo";
|
||||
|
|
@ -18,6 +23,11 @@
|
|||
speedFactor = 3;
|
||||
sshUser = "harald";
|
||||
sshKey = "/etc/ssh/nix-builder-key";
|
||||
supportedFeatures = [
|
||||
"nixos-test"
|
||||
"benchmark"
|
||||
"big-parallel"
|
||||
];
|
||||
}
|
||||
{
|
||||
hostName = "sgx";
|
||||
|
|
@ -26,9 +36,17 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue