This commit is contained in:
Andrea Ciceri 2024-02-17 15:35:43 +01:00
parent a2681cc220
commit d1b74a5bf6
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
17 changed files with 675 additions and 74 deletions

View file

@ -2,11 +2,14 @@
config,
lib,
fleetFlake,
pkgs,
...
}: {
nix = {
optimise.automatic = true;
package = pkgs.nixUnstable;
settings = {
auto-optimise-store = true;
trusted-users = [
@ -66,24 +69,23 @@
};
distributedBuilds = true;
buildMachines =
(lib.lists.optional (config.networking.hostName == "picard") {
hostName = "sisko.fleet";
system = "aarch64-linux";
maxJobs = 4;
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
protocol = "ssh-ng";
sshUser = "root";
sshKey = "/home/${config.ccr.username}/.ssh/id_rsa";
})
++ (lib.lists.optional (config.networking.hostName == "picard") {
hostName = "mac.staging.mlabs.city";
system = "x86_64-darwin";
maxJobs = 4;
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
protocol = "ssh-ng";
sshUser = "root";
sshKey = "/home/${config.ccr.username}/.ssh/id_rsa";
});
buildMachines = lib.lists.optional (config.networking.hostName == "picard") {
hostName = "sisko.fleet";
system = "aarch64-linux";
maxJobs = 4;
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
protocol = "ssh-ng";
sshUser = "root";
sshKey = "/home/${config.ccr.username}/.ssh/id_rsa";
};
# ++ (lib.lists.optional (config.networking.hostName == "picard") {
# hostName = "mac.staging.mlabs.city";
# system = "x86_64-darwin";
# maxJobs = 4;
# supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
# protocol = "ssh-ng";
# sshUser = "root";
# sshKey = "/home/${config.ccr.username}/.ssh/id_rsa";
# });
};
}